1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

require json for to_json of collection/model

This commit is contained in:
geemus 2011-02-15 11:27:31 -08:00
parent d555ec47cd
commit ca3e2b2432
2 changed files with 2 additions and 0 deletions

View file

@ -113,6 +113,7 @@ module Fog
end
def to_json
require 'json'
self.map {|member| member.attributes}.to_json
end

View file

@ -33,6 +33,7 @@ module Fog
end
def to_json
require 'json'
attributes.to_json
end