Use RABL to build JSON responses given by API

This commit is contained in:
Thibault Jouan
2012-03-11 23:25:57 +00:00
parent 8681999d4c
commit 196ea16a94
7 changed files with 34 additions and 1 deletions

View File

@@ -22,4 +22,8 @@ guard 'rspec', :cli => '--drb', :notification => false do
watch('app/controllers/application_controller.rb') { 'spec/controllers' }
watch(%r{^app/views/layouts/}) { 'spec/integration' }
watch(%r{^app/views/(.+)/(?:[^/]+).rabl}) do |m|
"spec/controllers/#{m[1]}_controller_spec.rb"
end
end