Sha256: d8fce59396bf20effe7e917fa7a7755bfc7ea66bb7fb2ec6b9754933afcfc4d6

Contents?: true

Size: 159 Bytes

Versions: 14

Compression:

Stored size: 159 Bytes

Contents

module AccountScoped
  extend ActiveSupport::Concern

  included do
    belongs_to :account    
    default_scope { where account: Current.account }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
authentication-zero-4.0.3 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-4.0.2 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-4.0.1 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-4.0.0 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-3.0.2 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-3.0.1 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-3.0.0 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-3.0.0.alpha1 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-2.16.36 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-2.16.35 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-2.16.34 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-2.16.33 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-2.16.32 lib/generators/authentication/templates/models/concerns/account_scoped.rb
authentication-zero-2.16.31 lib/generators/authentication/templates/models/concerns/account_scoped.rb