JSON::Pure::Generator::State fix when using resque. huge thanks to this post: http://blog.ethanvizitei.com/2010/11/json-pure-ruins-my-morning.html
This commit is contained in:
parent
7d847e16d0
commit
addbaaeb70
1 changed files with 6 additions and 0 deletions
6
config/initializers/json_patch.rb
Normal file
6
config/initializers/json_patch.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
class Fixnum
|
||||||
|
def to_json(options = nil)
|
||||||
|
to_s
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
Loading…
Reference in a new issue