Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Commit

Permalink
Fix another 1.8.7 syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanl committed Oct 3, 2013
1 parent 4bb9ff7 commit fa510fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/authority/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def authority_action_map

def overridden_actions(options = {})
if forced_action = options.fetch(:all_actions, false)
overridden_actions = authority_action_map.inject({}) { |hash, (key)| hash.tap { |h| h[key] = forced_action } }
overridden_actions = authority_action_map.inject({}) { |hash, (key, val)| hash.tap { |h| h[key] = forced_action } }
end
overridden_actions || options.fetch(:actions, {})
end
Expand Down

0 comments on commit fa510fb

Please sign in to comment.