instance method
update
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
update(options = {}, &block)
No documentation comment.
Parameters
-
optionsopt = {} -
blockblock
Source
# File activemodel/lib/active_model/state_machine/event.rb, line 48
def update(options = {}, &block)
if options.key?(:success) then @success = options[:success] end
if block then instance_eval(&block) end
self
end
Defined in activemodel/lib/active_model/state_machine/event.rb line 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::StateMachine::Event