lib/roadie/action_mailer_extensions.rb in roadie-2.1.0.pre1 vs lib/roadie/action_mailer_extensions.rb in roadie-2.1.0.pre2
- old
+ new
@@ -35,14 +35,11 @@
private
def default_css_targets
self.class.default[:css]
end
- def url_options
- Rails.application.config.action_mailer.default_url_options
- end
-
def inline_style_response(response)
+ url_options = Rails.application.config.action_mailer.default_url_options
if response[:content_type] == 'text/html'
response.merge :body => Roadie.inline_css(Roadie.current_provider, css_targets, response[:body], url_options)
else
response
end