Module: Mongoid::Publishable

Defined in:
lib/mongoid/publishable.rb,
lib/mongoid/publishable/queue.rb,
lib/mongoid/publishable/queuing.rb,
lib/mongoid/publishable/version.rb,
lib/mongoid/publishable/callback.rb,
lib/mongoid/publishable/callbacks.rb,
lib/mongoid/publishable/unpublished_error.rb,
lib/mongoid/publishable/unpublished_object.rb,
lib/mongoid/publishable/callback_collection.rb

Defined Under Namespace

Modules: Callbacks, ClassMethods, InstanceMethods, Queuing Classes: Callback, CallbackCollection, Queue, UnpublishedError, UnpublishedObject

Constant Summary collapse

VERSION =
"0.4.0"

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/mongoid/publishable.rb', line 8

def self.included(base)
  base.extend ClassMethods
  base.send :include, InstanceMethods
  base.send :include, Callbacks
  base.class_eval do
    # allow overwriting of the columns on an instance level
    attr_writer :publisher_column, :publisher_foreign_key
  end
end