Module: StripAttributes
- Defined in:
- lib/strip_attributes.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/strip_attributes.rb', line 3 def self.included(klass) klass.send :extend, ClassMethods # sets up default of stripping for all fields klass.send :strip_attributes! klass.class_inheritable_reader :strip_attributes_options klass.send :include, InstanceMethods end |