Module: Chewy::Type::Observe::ActiveRecordMethods
- Defined in:
- lib/chewy/type/observe.rb
Instance Method Summary collapse
Instance Method Details
#update_index(type_name, *args, &block) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/chewy/type/observe.rb', line 61 def update_index(type_name, *args, &block) = Observe.(args) update_proc = Observe.update_proc(type_name, *args, &block) if Chewy.use_after_commit_callbacks after_commit(, &update_proc) else after_save(, &update_proc) after_destroy(, &update_proc) end end |