Module: NullRecord::HasNullRecord

Defined in:
lib/null_record/has_null_record.rb

Class Method Summary collapse

Class Method Details

.define_on(model) ⇒ Object



4
5
6
7
8
# File 'lib/null_record/has_null_record.rb', line 4

def define_on(model)
  build_null_object(model, default_naught_config(model))
  model.send(:include, NullRecord::FinderMethods)
  model.send(:include, NullRecord::NullObject)
end