module Rakuna::Accepts::JSON

Public Instance Methods

content_types_accepted() click to toggle source
Calls superclass method
# File lib/rakuna/accepts/json.rb, line 12
def content_types_accepted
  @content_types_accepted ||= super << ['application/json', :from_json]
end
from_json() click to toggle source
# File lib/rakuna/accepts/json.rb, line 17
def from_json
  @from_json ||= MultiJson.load request.body.to_s
end
input() click to toggle source
# File lib/rakuna/accepts/json.rb, line 22
def input
  from_json
end