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:
parent
d555ec47cd
commit
ca3e2b2432
2 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,7 @@ module Fog
|
|||
end
|
||||
|
||||
def to_json
|
||||
require 'json'
|
||||
self.map {|member| member.attributes}.to_json
|
||||
end
|
||||
|
||||
|
|
|
@ -33,6 +33,7 @@ module Fog
|
|||
end
|
||||
|
||||
def to_json
|
||||
require 'json'
|
||||
attributes.to_json
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue