module Responders::EntityResponder
Protected Instance Methods
api_behavior(error)
click to toggle source
This is the common behavior for formats associated with APIs, such as :xml and :json.
Calls superclass method
# File lib/responders/entity_responder.rb, line 6 def api_behavior(error) raise error unless resourceful? if !get? && !post? display resource, :status => :ok, :location => api_location else super end end