Module: Filthy

Defined in:
lib/filthy.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



49
50
51
52
53
# File 'lib/filthy.rb', line 49

def self.included(base)
  base.extend ClassMethods
  base.send(:include, InstanceMethods)
  base.before_save :set_filthy_before_save, :if => Proc.new { |object| object.has_filthy_attributes? }
end