Module: Voltage::Extensions::ActiveRecord

Defined in:
lib/voltage/extensions/active_record.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/voltage/extensions/active_record.rb', line 10

def self.included(base)
  base.class_eval do
    include Voltage

    around_create     :around_create_signal
    around_save       :around_save_signal
    around_destroy    :around_destroy_signal
    before_validation :before_validation_signal
    after_validation  :after_validation_signal
  end
end