class SweetActions::JSON::CreateAction

Private Instance Methods

respond_with_error() click to toggle source
# File lib/sweet_actions/json/create_action.rb, line 12
def respond_with_error
  @response_code = '422'
  serialize_errors
end
respond_with_success() click to toggle source
# File lib/sweet_actions/json/create_action.rb, line 8
def respond_with_success
  serialize
end