Module: ActiveData::Model::Callbacks::PrependMethods
- Defined in:
- lib/active_data/model/callbacks.rb
Instance Method Summary collapse
- #create_object(&block) ⇒ Object
- #destroy_object(&block) ⇒ Object
- #initialize(*_) ⇒ Object
- #save_object(&block) ⇒ Object
- #update_object(&block) ⇒ Object
Instance Method Details
#create_object(&block) ⇒ Object
57 58 59 |
# File 'lib/active_data/model/callbacks.rb', line 57 def create_object &block run_callbacks(:create) { super(&block) } end |
#destroy_object(&block) ⇒ Object
65 66 67 |
# File 'lib/active_data/model/callbacks.rb', line 65 def destroy_object &block run_callbacks(:destroy) { super(&block) } end |
#initialize(*_) ⇒ Object
48 49 50 51 |
# File 'lib/active_data/model/callbacks.rb', line 48 def initialize *_ super(*_) run_callbacks :initialize end |
#save_object(&block) ⇒ Object
53 54 55 |
# File 'lib/active_data/model/callbacks.rb', line 53 def save_object &block run_callbacks(:save) { super(&block) } end |
#update_object(&block) ⇒ Object
61 62 63 |
# File 'lib/active_data/model/callbacks.rb', line 61 def update_object &block run_callbacks(:update) { super(&block) } end |