Skip to content

Commit

Permalink
fixing clear if init true
Browse files Browse the repository at this point in the history
  • Loading branch information
torbjon committed Jun 4, 2012
1 parent 147b3b5 commit 25fe321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gon/helpers.rb
Expand Up @@ -14,7 +14,7 @@ def include_gon(options = {})
Gon.clear
Gon::Base.render_data(options)
elsif options[:init].present?
Gon.clear if Gon.all_variables.present?
Gon::Request.env = {} if Gon.all_variables.present?
Gon::Base.render_data(options)
else
""
Expand Down

0 comments on commit 25fe321

Please sign in to comment.