Sha256: 255281b936e5fb26e82f2b1d12e1dcafadf895bdb526f5ff184fd78cd5dd17d8
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
module ActionMerge module Syncable extend ActiveSupport::Concern included do has_one :automerge_document, dependent: :destroy, as: :syncable end class_methods do def to_authorize_sync(&block) @@_to_authorize_sync = block end end def authorize_sync(channel) channel.instance_eval &@@_to_authorize_sync end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action_merge-0.1.0 | lib/action_merge/syncable.rb |