Module: Card::Dirty::MethodFactory

Included in:
Card, Card::Dirty
Defined in:
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 '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