Sha256: d52aad15d6197baa464870977bc4fa666cfd1a3bfe26f07c717b783cbd75f6a1
Contents?: true
Size: 691 Bytes
Versions: 4
Compression:
Stored size: 691 Bytes
Contents
module Alondra module ChangesPush def push(*args) last_arg = args.last options = Hash === last_arg ? args.delete(last_arg) : {} args.each do |event_type| case event_type when :changes then ChangesCallbacks.push_updates(self, options) ChangesCallbacks.push_creations(self, options) ChangesCallbacks.push_destroys(self, options) when :updates then ChangesCallbacks.push_updates(self, options) when :creations then ChangesCallbacks.push_creations(self, options) when :destroys then ChangesCallbacks.push_destroys(self, options) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
alondra-0.1.1 | lib/alondra/changes_push.rb |
alondra-0.1.0 | lib/alondra/changes_push.rb |
alondra-0.0.4 | lib/alondra/changes_push.rb |
alondra-0.0.3 | lib/alondra/changes_push.rb |