Fix incorrect load path.

This commit is contained in:
Guo Xiang Tan 2019-05-13 15:11:20 +08:00
parent 897e11e719
commit d899f23dd9
1 changed files with 4 additions and 7 deletions

View File

@ -11,12 +11,9 @@ end
register_asset 'stylesheets/steam-login.scss'
load File.expand_path("../lib/auth/steam_authenticator.rb", __FILE__)
[
"../lib/auth/steam_authenticator.rb",
"../lib/validators/enable_steam_logins_validator.rb"
].each { |path| load File.expand_path(path, __FILE__) }
auth_provider authenticator: Auth::SteamAuthenticator.new, icon: 'steam'
after_initialize do
[
"../lib/validators/enable_steam_logins_validator.rb"
].each { |path| load File.expand_path(path, __FILE__) }
end