Module: BlankAttributes::Blankable::BlankableMethods
- Defined in:
- lib/blank_attributes/blankable.rb
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/blank_attributes/blankable.rb', line 18 def self.included(klass) klass.class_eval do before_validation :normalize_blank_attributes skip_callback :validate, :before, :normalize_blank_attributes, if: :skip_normalize_blank_atttributes? klass.class_eval do include BlankAttributes::Blankable::InstanceMethods end end end |