Module: ActsAsKaltura::Callbacks::ClassMethods
- Defined in:
- lib/acts_as_kaltura/callbacks.rb
Instance Method Summary collapse
- #run_kaltura_after_save_callbacks(instance) ⇒ Object
- #set_kaltura_after_save_callback(callback_method) ⇒ Object
Instance Method Details
#run_kaltura_after_save_callbacks(instance) ⇒ Object
17 18 19 20 21 |
# File 'lib/acts_as_kaltura/callbacks.rb', line 17 def run_kaltura_after_save_callbacks(instance) if _kaltura_after_save_callbacks.present? _kaltura_after_save_callbacks.each { |m| instance.send m } end end |
#set_kaltura_after_save_callback(callback_method) ⇒ Object
13 14 15 |
# File 'lib/acts_as_kaltura/callbacks.rb', line 13 def set_kaltura_after_save_callback(callback_method) _kaltura_after_save_callbacks << callback_method end |