Skip to content

Instantly share code, notes, and snippets.

@softr8
Last active August 29, 2015 14:25
Show Gist options
  • Save softr8/67eb21da684f7c86ea1e to your computer and use it in GitHub Desktop.
Save softr8/67eb21da684f7c86ea1e to your computer and use it in GitHub Desktop.
Fix spree vulnerability with old versions
#lib/spree/api/responders_decorator.rb
Spree::Api::Responders::AppResponder.class_eval do
def template
options[:default_template]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment