Method: Lipstick::AutoValidation::ClassMethods.extended

Defined in:
lib/lipstick/auto_validation.rb

.extended(base) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/lipstick/auto_validation.rb', line 6

def self.extended(base)
  return if base.respond_to?(:validators)

  raise('Lipstick::AutoValidation requires a class which responds' \
        ' to the `validators` method. For example, as provided by' \
        ' ActiveModel::Validations')
end