Merge pull request #234 from rykov/responder

Ensure that Responders work with Rails-API
This commit is contained in:
Steve Klabnik 2013-03-14 11:36:55 -07:00
commit 6642a86f2b

View File

@ -30,6 +30,11 @@ module ActionController
included do
class_attribute :_serialization_scope
self._serialization_scope = :current_user
unless self.respond_to?(:responder=)
include ActionController::MimeResponds
end
self.responder = ActiveModel::Serializer::Responder
self.respond_to :json