Method: RR::ReplicationRun#event_filtered?
- Defined in:
- lib/rubyrep/replication_run.rb
#event_filtered?(diff) ⇒ Boolean
Calls the event filter for the give difference.
-
diff
: instance of ReplicationDifference
Returns true
if replication of the difference should not proceed.
28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rubyrep/replication_run.rb', line 28 def event_filtered?(diff) event_filter = helper.(diff.changes[:left].table)[:event_filter] if event_filter && event_filter.respond_to?(:before_replicate) not event_filter.before_replicate( diff.changes[:left].table, helper.type_cast(diff.changes[:left].table, diff.changes[:left].key), helper, diff ) else false end end |