app/controllers/storytime/application_controller.rb in storytime-1.1.1 vs app/controllers/storytime/application_controller.rb in storytime-1.2.0

- old
+ new

@@ -28,18 +28,18 @@ redirect_to url end if Storytime.user_class_symbol != :user def authenticate_user! - send("authenticate_#{Storytime.user_class.to_s.downcase}!".to_sym) + send("authenticate_#{Storytime.user_class_underscore_all}!".to_sym) end def current_user - send("current_#{Storytime.user_class.to_s.downcase}".to_sym) + send("current_#{Storytime.user_class_underscore_all}".to_sym) end def user_signed_in? - send("#{Storytime.user_class.to_s.downcase}_signed_in?".to_sym) + send("#{Storytime.user_class_underscore_all}_signed_in?".to_sym) end end private def ensure_site