Skip to content

Commit

Permalink
Refactor Interactor::Context#fail! to be simpler
Browse files Browse the repository at this point in the history
…by not interacting directly with OpenStruct#modifiable.
  • Loading branch information
laserlemon committed Mar 31, 2017
1 parent 7178b69 commit 67824df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interactor/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def failure?
#
# Raises Interactor::Failure initialized with the Interactor::Context.
def fail!(context = {})
context.each { |key, value| modifiable[key.to_sym] = value }
context.each { |key, value| self[key] = value }
@failure = true
raise Failure, self
end
Expand Down

0 comments on commit 67824df

Please sign in to comment.