]> git.openstreetmap.org Git - rails.git/blobdiff - lib/session_persistence.rb
Replace deprecated xxx_filter methods with xxx_action
[rails.git] / lib / session_persistence.rb
index 2244a3e63f50d5c6e6fac98fcfa8a78a4215595a..7d42b71e76f54ffde025fb34056367351e98d1cf 100644 (file)
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 module SessionPersistence
-  private
+  class << self
+    private
 
-  # Install filter when we are included
-  def self.included(controller)
-    controller.after_filter :persist_session
+    # Install filter when we are included
+    def included(controller)
+      controller.after_action :persist_session
+    end
   end
 
+  private
+
   # Override this method if you don't want to use session[:_remember_for].
   def session_persistence_key
     :_remember_for