Skip to content

Commit 23feca2

Browse files
authored
Merge pull request #106 from tvdeyen/absolute-controller-paths
Use absolute paths in Alchemy module definition
2 parents 56141a3 + 10c6f74 commit 23feca2

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

config/initializers/alchemy.rb

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
require 'alchemy/devise/ability'
1+
# frozen_string_literal: true
2+
3+
require "alchemy/devise/ability"
24

35
Alchemy.register_ability(Alchemy::Devise::Ability)
46

57
Alchemy::Modules.register_module({
6-
name: 'users',
7-
engine_name: 'alchemy',
8+
name: "users",
9+
engine_name: "alchemy",
810
position: 4.1,
911
navigation: {
10-
name: 'modules.users',
11-
controller: 'alchemy/admin/users',
12-
action: 'index',
13-
icon: 'users'
14-
}
12+
name: "modules.users",
13+
controller: "/alchemy/admin/users",
14+
action: "index",
15+
icon: "users",
16+
},
1517
})
1618

17-
Alchemy.user_class_name = 'Alchemy::User'
18-
Alchemy.signup_path = '/admin/signup'
19-
Alchemy.login_path = '/admin/login'
20-
Alchemy.logout_path = '/admin/logout'
19+
Alchemy.user_class_name = "Alchemy::User"
20+
Alchemy.signup_path = "/admin/signup"
21+
Alchemy.login_path = "/admin/login"
22+
Alchemy.logout_path = "/admin/logout"
2123

2224
if Alchemy.respond_to?(:logout_method)
2325
Rails.application.config.after_initialize do

0 commit comments

Comments
 (0)