Sha256: 2d690db4adaebdf084df941223b8b7e401b35b28d80895f51f3845c6fecd67bc

Contents?: true

Size: 214 Bytes

Versions: 27

Compression:

Stored size: 214 Bytes

Contents

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

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
authentication-zero-2.2.7 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.2.6 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.2.5 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.2.4 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.2.3 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.2.2 lib/generators/authentication/templates/models/current.rb.tt
authentication-zero-2.2.1 lib/generators/authentication/templates/models/current.rb.tt