Module: FastExists::ActiveRecord::Hooks

Defined in:
lib/fast_exists/active_record/hooks.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
# File 'lib/fast_exists/active_record/hooks.rb', line 6

def self.included(base)
  base.after_commit :fast_exists_sync_on_commit, on: [:create, :update]
end