diff --git a/lib/paperclip/interpolations.rb b/lib/paperclip/interpolations.rb index 60e08f3d2..2dd346f88 100644 --- a/lib/paperclip/interpolations.rb +++ b/lib/paperclip/interpolations.rb @@ -32,13 +32,13 @@ def self.interpolate pattern, *args pattern = args.first.instance.send(pattern) if pattern.kind_of? Symbol result = pattern.dup interpolators_cache.each do |tag| - result.gsub!(tag_pattern_cache[tag]) {send( tag, *args )} + result.gsub!(tag_pattern_cache[tag]) { send(tag, *args) } end result end def self.tag_pattern_cache - @tag_pattern_cache ||= Hash.new {|hash, key| hash[key]= ":#{key}"} + @tag_pattern_cache ||= Hash.new { |hash, key| hash[key] = ":#{key}" } end def self.interpolators_cache