Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Prefer `{ do_stuff }` instead of `{do_stuff}` [ci skip] #11268

Closed
wants to merge 1 commit into from

3 participants

@mattdbridges

Generally, semantic changes are not accepted unless there are other changes around it (i.e. fixing a bug, adding a feature, refactoring, etc).

\cc @rafaelfranca

@carlosantoniodasilva

Yes, @mattdbridges is right, changes considered as cosmetic are usually not applied because they make the history harder to follow, but they are ok when coming with changes in related code. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/lib/active_support/cache.rb
View
6 activesupport/lib/active_support/cache.rb
@@ -515,12 +515,12 @@ def expanded_key(key) # :nodoc:
case key
when Array
if key.size > 1
- key = key.collect{|element| expanded_key(element)}
+ key = key.collect { |element| expanded_key(element) }
else
key = key.first
end
when Hash
- key = key.sort_by { |k,_| k.to_s }.collect{|k,v| "#{k}=#{v}"}
+ key = key.sort_by { |k,_| k.to_s }.collect { |k,v| "#{k}=#{v}" }
end
key.to_param
@@ -542,7 +542,7 @@ def instrument(operation, key, options = nil)
if self.class.instrument
payload = { :key => key }
payload.merge!(options) if options.is_a?(Hash)
- ActiveSupport::Notifications.instrument("cache_#{operation}.active_support", payload){ yield(payload) }
+ ActiveSupport::Notifications.instrument("cache_#{operation}.active_support", payload) { yield(payload) }
else
yield(nil)
end
Something went wrong with that request. Please try again.