class Rack::MongoidAdapter::Controllers::IndexController

Private Instance Methods

response_body() click to toggle source
# File lib/rack/mongoid_adapter/controllers/index_controller.rb, line 7
def response_body
  JSON.pretty_generate(connection.find.to_a, pretty: true) + "\n"
end