Determine and set the request format before calling the controllers

This commit is contained in:
Paul van Tilburg 2012-01-20 00:36:19 +01:00
parent 45da051bf0
commit f731ddee4e
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ module StopTime
# for all controllers and views.
def service(*a)
@config = StopTime::Models::Config.instance
@format = @request.path_info[/.([^.]+)/, 1];
super(*a)
end