# Install filter when we are included
def included(controller)
- controller.after_filter :persist_session
+ controller.after_action :persist_session
end
end
if session[session_persistence_key]
request.session_options[:expire_after] = session[session_persistence_key]
end
- rescue
+ rescue StandardError
reset_session
end
end