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