Sha256: 1773f026c2084e8bfa2fa912c39e9b64a2742c04e1be0ade384f5a06918faa1a

Contents?: true

Size: 251 Bytes

Versions: 8

Compression:

Stored size: 251 Bytes

Contents

class Current < ActiveSupport::CurrentAttributes
  attribute :session, :<%= singular_table_name %>
  attribute :user_agent, :ip_address

  def session=(session)
    super; self.<%= singular_table_name %> = session.<%= singular_table_name %>
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
authentication-zero-2.11.2 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.11.1 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.11.0 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.10.0 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.9.3 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.9.2 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.9.1 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.9.0 lib/generators/authentication/templates/models/current.rb.tt