Module: Scrubba::ActiveMethods::ClassMethods

Defined in:
lib/scrubba/active_methods.rb

Instance Method Summary collapse

Instance Method Details

#normalize(*keys) ⇒ Object


18
19
20
# File 'lib/scrubba/active_methods.rb', line 18

def normalize(*keys)
  before_validation { scrubba_apply(keys, :normalize) }
end

#scrub(*keys) ⇒ Object


14
15
16
# File 'lib/scrubba/active_methods.rb', line 14

def scrub(*keys)
  before_validation { scrubba_apply(keys, :scrub) }
end