Module | Authlogic::ActsAsAuthentic::ValidationsScope::Config |
In: |
lib/authlogic/acts_as_authentic/validations_scope.rb
|
All configuration for the scope feature.
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