lib/authlogic/session/id.rb in authlogic-4.1.0 vs lib/authlogic/session/id.rb in authlogic-4.1.1

- old
+ new

@@ -1,10 +1,15 @@ module Authlogic module Session # Allows you to separate sessions with an id, ultimately letting you create # multiple sessions for the same user. module Id + def initialize(*args) + @id = nil + super + end + def self.included(klass) klass.class_eval do attr_writer :id end end @@ -37,12 +42,12 @@ @id end private - # Used for things like cookie_key, session_key, etc. - def build_key(last_part) - [id, super].compact.join("_") - end + # Used for things like cookie_key, session_key, etc. + def build_key(last_part) + [id, super].compact.join("_") + end end end end