Sha256: 6c52db176ed19f9a71be0821ff47fc1ac471ce7bb8c1e5fdd1b80073088d69d1

Contents?: true

Size: 186 Bytes

Versions: 20

Compression:

Stored size: 186 Bytes

Contents

class UserSession < Authlogic::Session::Base
  
  def to_key
    new_record? ? nil : [ self.send(self.class.primary_key) ]
  end

  find_by_login_method :find_by_username_or_email
  
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
i0n_rails3_generators-0.2.19 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.18 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.17 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.16 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.15 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.14 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.13 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.12 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.11 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.10 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.9 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.8 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.7 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.6 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.5 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.4 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.3 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.2 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.1 lib/generators/authlogic/complete/templates/user_session.rb
i0n_rails3_generators-0.2.0 lib/generators/authlogic/complete/templates/user_session.rb