mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-05 16:58:50 +01:00
Use respond_to { |format| format.any } to reduce duplication
This commit is contained in:
parent
4ca6114b76
commit
962b4fa5c9
4 changed files with 5 additions and 17 deletions
|
|
@ -160,13 +160,10 @@ module LoginSystem
|
|||
format.html { redirect_to login_path }
|
||||
format.m { redirect_to login_path(:format => 'm') }
|
||||
format.js { render :partial => 'login/redirect_to_login' }
|
||||
format.xml { basic_auth_denied }
|
||||
format.rss { basic_auth_denied }
|
||||
format.atom { basic_auth_denied }
|
||||
format.text { basic_auth_denied }
|
||||
format.any(:xml, :rss, :atom, :text) { basic_auth_denied }
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# store current uri in the session.
|
||||
# we can return to this location by calling return_location
|
||||
def store_location
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue