Module: Gongren::Rails::Extensions::ActiveRecord

Defined in:
lib/gongren/rails/extensions/active_record.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.queued_after_create(*args, &block) ⇒ Object

TODO: Map from *args to a block / #call-able something



16
17
18
# File 'lib/gongren/rails/extensions/active_record.rb', line 16

def self.queued_after_create(*args, &block)
  raise "not implemented"
end

.queued_after_save(*args, &block) ⇒ Object

TODO: Map from *args to a block / #call-able something



6
7
8
# File 'lib/gongren/rails/extensions/active_record.rb', line 6

def self.queued_after_save(*args, &block)
  raise "not implemented"
end

.queued_after_update(*args, &block) ⇒ Object

TODO: Map from *args to a block / #call-able something



11
12
13
# File 'lib/gongren/rails/extensions/active_record.rb', line 11

def self.queued_after_update(*args, &block)
  raise "not implemented"
end

Instance Method Details

#queue(options) ⇒ Object



20
21
22
23
24
# File 'lib/gongren/rails/extensions/active_record.rb', line 20

def queue(options)
  CallProxy.new(options) do |data|
    data[:receiver] = {:active_record => [self.class.name, self.id]}
  end
end