We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents afd6574 + 8d1ae66 commit 05114fcCopy full SHA for 05114fc
config/initializers/alchemy.rb
@@ -3,6 +3,16 @@
3
Rails.application.config.to_prepare do
4
require "alchemy/devise/ability"
5
6
+ alchemy_7_4 = Gem::Version.new("7.4.0.a")
7
+
8
+ icon = if Alchemy.gem_version.between? Gem::Version.new("7.1.0-b1"), alchemy_7_4
9
+ "group-line"
10
+ elsif Alchemy.gem_version > alchemy_7_4
11
+ "group"
12
+ else
13
+ "users"
14
+ end
15
16
Alchemy.register_ability(Alchemy::Devise::Ability)
17
18
Alchemy::Modules.register_module({
@@ -13,7 +23,7 @@
23
name: "modules.users",
24
controller: "/alchemy/admin/users",
25
action: "index",
- icon: (Alchemy.gem_version > Gem::Version.new("7.1.0-b1")) ? "group-line" : "users"
26
+ icon: icon
27
}
28
})
19
29
0 commit comments