lib/hat_trick/controller_hooks.rb in hat-trick-0.1.3 vs lib/hat_trick/controller_hooks.rb in hat-trick-0.1.4
- old
+ new
@@ -69,9 +69,10 @@
# this sets the gon data (JS hatTrick object) for the initial page load
gon.metadata = wizard_metadata
gon.data = include_data
gon.model = hat_trick_wizard.model
+ gon.rails_env = Rails.env
# this sets the wizard metadata for subsequent AJAX requests
if hat_trick_wizard.model && rendered.has_key?(:json)
args[0][:json] = { :model => hat_trick_wizard.model,
:metadata => wizard_metadata }