Module: Card::Dirty::MethodFactory
- Included in:
- Card, Card::Dirty
- Defined in:
- card/lib/card/dirty/method_factory.rb
Instance Method Summary collapse
Instance Method Details
#define_dirty_methods(field) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'card/lib/card/dirty/method_factory.rb', line 4 def define_dirty_methods field define_method "#{field}_before_act" do attribute_before_act field end define_method "#{field}_is_changing?" do attribute_is_changing? field end end |