Module Authlogic::ActsAsAuthentic::ValidationsScope::Config
In: lib/authlogic/acts_as_authentic/validations_scope.rb

All configuration for the scope feature.

Methods

Public Instance methods

Allows you to scope everything to specific field(s). Works just like validates_uniqueness_of. For example, let‘s say a user belongs to a company, and you want to scope everything to the company:

  acts_as_authentic do |c|
    c.validations_scope = :company_id
  end
  • Default: nil
  • Accepts: Symbol or Array of symbols
validations_scope=(value = nil)

Alias for validations_scope

[Validate]