Class: Approvable::ChangeRequest

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
AASM
Defined in:
app/models/approvable/change_request.rb

Instance Method Summary collapse

Instance Method Details

#transition_options(options = {}) ⇒ Object



43
44
45
46
47
48
# File 'app/models/approvable/change_request.rb', line 43

def transition_options(options = {})
  note = options[:note] if options
  self.notes_will_change! if note
  self.notes ||= {}
  self.notes[Time.now.to_s] = note if note      
end