Sha256: c112c0a01b9739ac9f78264f8fb024a0813566ae89c0b8c06eeb0b96abcd0069

Contents?: true

Size: 269 Bytes

Versions: 12

Compression:

Stored size: 269 Bytes

Contents

class <%= model_class_name %>Session < Authlogic::Session::Base

  authenticate_with <%= model_class_name %>
  generalize_credentials_error_messages true
  params_key "user_credentials"

  def to_key
    new_record? ? nil : [self.send self.class.primary_key]
  end

end

Version data entries

12 entries across 11 versions & 1 rubygems

Version Path
rich_cms-3.0.2 lib/generators/rich/cms_admin/templates/authlogic/session.rb
rich_cms-3.0.1 lib/generators/rich/cms_admin/templates/authlogic/session.rb
rich_cms-3.0.0 lib/generators/rich/cms_admin/templates/authlogic/session.rb
rich_cms-2.1.7 lib/generators/rich/authlogic_user/templates/session.rb
rich_cms-2.1.6 lib/generators/rich/authlogic_user/templates/session.rb
rich_cms-2.1.5 lib/generators/rich/authlogic_user/templates/session.rb
rich_cms-2.1.4 lib/generators/rich/authlogic_user/templates/session.rb
rich_cms-2.1.3 lib/generators/rich/authlogic_user/templates/session.rb
rich_cms-2.1.2 rails_generators/rich_authlogic_user/templates/session.rb
rich_cms-2.1.2 lib/generators/rich/authlogic_user/templates/session.rb
rich_cms-2.1.1 rails_generators/rich_authlogic_user/templates/session.rb
rich_cms-2.1.0 rails_generators/rich_authlogic_user/templates/session.rb