Method: Scrubby.included
- Defined in:
- lib/scrubby.rb
.included(base) ⇒ Object
:nodoc:
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/scrubby.rb', line 22 def self.included(base) #:nodoc: base.class_eval do class_inheritable_hash :scrubbers self.scrubbers = {} extend ClassMethods include InstanceMethods alias_method_chain :write_attribute, :scrub end end |