app/controllers/bhf/application_controller.rb in bhf-0.8.3 vs app/controllers/bhf/application_controller.rb in bhf-0.8.4
- old
+ new
@@ -18,10 +18,10 @@
redirect_to(main_app.send(Bhf.configuration.on_login_fail.to_sym), error: t('bhf.helpers.user.login.error')) and return false
end
def setup_current_account
if session[Bhf.configuration.session_account_id]
- @current_account = Bhf.configuration.account_model.constantize.send(
+ @current_account = Bhf.configuration.account_model.classify.constantize.send(
Bhf.configuration.account_model_find_method.to_sym,
session[Bhf.configuration.session_account_id.to_s]
)
# => User.find(current_account.id)
end