Skip to content

Commit

Permalink
Merge pull request #1347 from shekibobo/smarter-default-url
Browse files Browse the repository at this point in the history
Pass #url `args` to #default_url
  • Loading branch information
bensie committed Jun 2, 2014
2 parents e4439e0 + 8ea59c7 commit 6a816c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/carrierwave/uploader/default_url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ module Uploader
module DefaultUrl

def url(*args)
super || default_url
super || default_url(*args)
end

##
# Override this method in your uploader to provide a default url
# in case no file has been cached/stored yet.
#
def default_url; end
def default_url(*args); end

end # DefaultPath
end # Uploader
end # CarrierWave
end # CarrierWave

0 comments on commit 6a816c1

Please sign in to comment.