lib/generators/shamu/api_controller/templates/api_controller.rb in shamu-0.0.7 vs lib/generators/shamu/api_controller/templates/api_controller.rb in shamu-0.0.8
- old
+ new
@@ -1,9 +1,9 @@
require "api_responder"
class ApiController < ApplicationController
- include Shamu::Rails::JsonApi
+ include Shamu::JsonApi::Rails::Controller
self.responder = ::ApiResponder
- respond_to :json, :json_api
+ respond_to :json_api, :json
end
\ No newline at end of file