Determine and set the request format before calling the controllers
This commit is contained in:
parent
45da051bf0
commit
f731ddee4e
|
@ -53,6 +53,7 @@ module StopTime
|
||||||
# for all controllers and views.
|
# for all controllers and views.
|
||||||
def service(*a)
|
def service(*a)
|
||||||
@config = StopTime::Models::Config.instance
|
@config = StopTime::Models::Config.instance
|
||||||
|
@format = @request.path_info[/.([^.]+)/, 1];
|
||||||
super(*a)
|
super(*a)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue