Module: WithoutScope::ActsAsRevisable::Validations

Defined in:
lib/acts_as_revisable/validations.rb

Instance Method Summary collapse

Instance Method Details

#validates_uniqueness_of(*args) ⇒ Object



4
5
6
7
8
# File 'lib/acts_as_revisable/validations.rb', line 4

def validates_uniqueness_of(*args)
  options = args.extract_options!
  (options[:scope] ||= []) << :revisable_is_current
  super(*(args << options))
end