Skip to content

Instantly share code, notes, and snippets.

@paul
Forked from TwP/gist:981176
Created May 19, 2011 16:33
Show Gist options
  • Save paul/981186 to your computer and use it in GitHub Desktop.
Save paul/981186 to your computer and use it in GitHub Desktop.
Using AD's ParamsParser middleware
require 'yajl'
module Ssaj
PARSER = Proc.new do |data|
HashWithIndifferentAccess.new(Yajl::Parser.parse(data))
end
ActionDispatch::ParamsParser::DEFAULT_PARSERS[Mime::SSAJ1] = PARSER
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment