Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
code style cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
dgynn committed Jun 8, 2015
1 parent d3f5fcb commit 3ad8a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/paperclip/interpolations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ad8a8b

Please sign in to comment.