class RestfulObjects::Router::Base
Public Instance Methods
model()
click to toggle source
# File lib/restful_objects/router/base.rb, line 13 def model RestfulObjects::DomainModel.current end
objects()
click to toggle source
# File lib/restful_objects/router/base.rb, line 17 def objects RestfulObjects::DomainModel.current.objects end
process_params()
click to toggle source
# File lib/restful_objects/router/base.rb, line 21 def process_params if request.query_string != '' query_params = CGI.parse(request.query_string) parameters = Hash.new query_params.each { |key, value| parameters[key] = { 'value' => value.first } } parameters.to_json else request.body.read end end