Sha256: 4e2780dec27bc9c803c89aa2d246b57026921af8b8509a2f1059568a81b75d40

Contents?: true

Size: 185 Bytes

Versions: 49

Compression:

Stored size: 185 Bytes

Contents

class Current < ActiveSupport::CurrentAttributes
  attribute :session, :user
  attribute :user_agent, :ip_address

  def session=(session)
    super; self.user = session.user
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
authentication-zero-2.14.0 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.13.0 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.12.6 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.12.5 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.12.4 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.12.3 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.12.2 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.12.1 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.12.0 lib/generators/authentication/templates/models/current.rb.tt