# File lib/cimi/helpers/cimi_helper.rb, line 39 def to_json_cimi_collection(_self) model_name = first.class.xml_tag_name { "uri" => _self.send("#{model_name.underscore.pluralize}_url""#{model_name.underscore.pluralize}_url"), "name" => "default", "created" => Time.now.to_s, model_name.pluralize.uncapitalize => map { |model| { 'href' => model.uri } } }.to_json end