Fix some more rubocop style issues
This commit is contained in:
parent
4f4180e4bd
commit
8e404f3a46
9 changed files with 43 additions and 50 deletions
|
@ -5,7 +5,7 @@ module Paperclip
|
|||
def for(style_name, options)
|
||||
url = super(style_name, options)
|
||||
|
||||
if url =~ /^\/assets\/(.*)$/
|
||||
if url =~ %r{^/assets/(.*)$}
|
||||
asset_path($1)
|
||||
else
|
||||
url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue