Project

General

Profile

« Previous | Next » 

Revision b2b47290

Added by Petr Chalupa almost 12 years ago

  • ID b2b4729059ff89327d7cd86d2e47664a2ce57c46

api v1 - render errors with rabl

better detection of permission failure in model
fix ApiConstraints
catch bad routes in api and return json

View differences:

app/views/api/v1/home/index.json.rabl
object false
child(:links => "links") do
node(:bookmarks) { api_bookmarks_path }
node(:status) { api_status_path }
%w(bookmarks architectures operatingsystems).each do |name|
node(name.to_sym) { send :"api_#{name}_path" }
end
end

Also available in: Unified diff