Class: Paperclip::UrlGenerator
- Inherits:
-
Object
- Object
- Paperclip::UrlGenerator
- Defined in:
- lib/paperclip/url_generator.rb
Instance Method Summary collapse
- #for(style_name, options) ⇒ Object
-
#initialize(attachment) ⇒ UrlGenerator
constructor
A new instance of UrlGenerator.
Constructor Details
#initialize(attachment) ⇒ UrlGenerator
Returns a new instance of UrlGenerator.
5 6 7 |
# File 'lib/paperclip/url_generator.rb', line 5 def initialize() @attachment = end |
Instance Method Details
#for(style_name, options) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/paperclip/url_generator.rb', line 9 def for(style_name, ) interpolated = [:interpolator].interpolate( most_appropriate_url, @attachment, style_name ) escaped = escape_url_as_needed(interpolated, ) (escaped, ) end |