Module: DataMapper::ActiveRecordMethods::InstanceMethods

Defined in:
lib/merb_background/job/ar2dm.rb

Instance Method Summary collapse

Instance Method Details

#bang(&block) ⇒ Object



17
18
19
20
# File 'lib/merb_background/job/ar2dm.rb', line 17

def bang(&block)
  block.call or raise RecordNotSaved
  return self
end

#loggerObject



13
14
15
# File 'lib/merb_background/job/ar2dm.rb', line 13

def logger
  self.class.logger
end

#update_attributes!(hash) ⇒ Object



22
23
24
# File 'lib/merb_background/job/ar2dm.rb', line 22

def update_attributes!(hash)
  bang{update_attributes(hash)}
end