Determine and set the request format before calling the controllers
This commit is contained in:
parent
45da051bf0
commit
f731ddee4e
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue