Class: Her::Collection

Inherits:
Object
  • Object
show all
Defined in:
lib/userbin/models/model.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonObject

Call the overridden to_json in Userbin::Model


5
6
7
# File 'lib/userbin/models/model.rb', line 5

def to_json
  self.map { |m| m.to_json }
end