Permalink
Browse files

0.1.0

  • Loading branch information...
1 parent 08ea380 commit def923dedc632365e37c1b9f1c2dd5305979e545 @lleirborras committed Jun 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/static_helper.rb
View
4 lib/static_helper.rb
@@ -11,9 +11,9 @@ def self.included(base)
end
def render_with_go_static(options = nil, *args, &block)
- options[:format] ||= "png"
if options.is_a?(Hash) && options.has_key?(:png)
log_png_creation
+ options[:format] ||= "png"
options[:basic_auth] = set_basic_auth(options)
make_and_send_png(options.delete(:png), (GoStatic.config || {}).merge(options))
else
@@ -22,9 +22,9 @@ def render_with_go_static(options = nil, *args, &block)
end
def render_to_string_with_go_static(options = nil, *args, &block)
- options[:format] ||= "png"
if options.is_a?(Hash) && options.has_key?(:png)
log_png_creation
+ options[:format] ||= "png"
options[:basic_auth] = set_basic_auth(options)
options.delete :png
make_png((GoStatic.config || {}).merge(options))

0 comments on commit def923d

Please sign in to comment.