]> git.openstreetmap.org Git - rails.git/blobdiff - lib/session_persistence.rb
Rename 'clickable' to 'interactive' per leaflet 1.x change
[rails.git] / lib / session_persistence.rb
index 2244a3e63f50d5c6e6fac98fcfa8a78a4215595a..d4dd1cc1de3aa53a8b2516993aa517382537166f 100644 (file)
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 module SessionPersistence
 # 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_filter :persist_session
+    end
   end
 
   end
 
+  private
+
   # Override this method if you don't want to use session[:_remember_for].
   def session_persistence_key
     :_remember_for
   # Override this method if you don't want to use session[:_remember_for].
   def session_persistence_key
     :_remember_for