Skip to content

Commit

Permalink
Minor refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cunnilingus committed Mar 5, 2015
1 parent 4d6106f commit 2c54ed9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/public_activity/common.rb
Expand Up @@ -13,11 +13,7 @@ def self.resolve_value(context, thing)
when Proc
thing.call(PublicActivity.get_controller, context)
when Hash
thing.tap do |hash|
hash.each do |key, value|
hash[key] = PublicActivity.resolve_value(context, value)
end
end
thing.each { |key, value| thing[key] = PublicActivity.resolve_value(context, value) }
else
thing
end
Expand Down

0 comments on commit 2c54ed9

Please sign in to comment.