lib/bulldog/attachment/maybe.rb in bulldog-0.0.3 vs lib/bulldog/attachment/maybe.rb in bulldog-0.0.4

- old
+ new

@@ -118,11 +118,10 @@ # assigned to the attachment (e.g., :extension). # def interpolate_path(style_name, params={}) template = reflection.path_template style = reflection.styles[style_name] - params[:extension] ||= style[:format] Interpolation.interpolate(template, record, name, style, params) end # # Return the URL that the given style would be found at. @@ -133,10 +132,9 @@ # to the attachment (e.g., :extension). # def interpolate_url(style_name, params={}) template = reflection.url_template style = reflection.styles[style_name] - params[:extension] ||= style[:format] Interpolation.interpolate(template, record, name, style, params) end protected # ---------------------------------------------------