Sha256: b09bc91603e76b5ea540b0646e2653b298ef156ff81604486ee2b8f81b629582

Contents?: true

Size: 252 Bytes

Versions: 3

Compression:

Stored size: 252 Bytes

Contents

class Current < ActiveSupport::CurrentAttributes
  attribute :session, :user
  attribute :user_agent, :ip_address
  <%- if options.tenantable? %>
  attribute :account
  <%- end -%>

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authentication-zero-2.16.32 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.16.31 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.16.30 lib/generators/authentication/templates/models/current.rb.tt