lib/restfulness/application.rb in restfulness-0.2.0 vs lib/restfulness/application.rb in restfulness-0.2.1
- old
+ new
@@ -8,11 +8,11 @@
# Build your own Restfulness applications by inheriting from this class:
#
# class MyApp < Restfulness::Application
#
# routes do
- # scope 'api' do
+ # scope 'api' do # scope not supported yet!
# add 'journey', JourneyResource
# add 'journeys', JourneyCollectionResource
# end
# end
#
@@ -61,9 +61,10 @@
#
# middlewares << ActiveDispatch::Reloader
#
def middlewares
@middlewares ||= [
+ Rack::CommonLogger,
Rack::ShowExceptions
]
end
# Quick access to the Restfulness logger.