app/controllers/alchemy/base_controller.rb in alchemy_cms-2.5.0.b9 vs app/controllers/alchemy/base_controller.rb in alchemy_cms-2.5.0.rc3

- old
+ new

@@ -7,10 +7,11 @@ protect_from_forgery before_filter :set_current_site before_filter :set_language before_filter :mailer_set_url_options + before_filter :store_user_request_time helper_method :current_server, :current_site # Returns a host string with the domain the app is running on. def current_server @@ -183,9 +184,16 @@ end # Redirects request to ssl. def enforce_ssl redirect_to url_for(protocol: 'https') + end + + # Stores the users request time. + def store_user_request_time + if user_signed_in? + current_user.store_request_time! + end end protected def permission_denied