module Authlogic::ActsAsAuthentic::ValidationsScope::Config
All configuration for the scope feature.
Public Instance Methods
validations_scope(value = nil)
click to toggle source
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
# File lib/authlogic/acts_as_authentic/validations_scope.rb, line 25 def validations_scope(value = nil) rw_config(:validations_scope, value) end
Also aliased as: validations_scope=