| Class | ApplicationController |
| In: |
app/controllers/application_controller.rb
|
| Parent: | ActionController::Base |
# File app/controllers/application_controller.rb, line 39
39: def admin_required
40: redirect_back_or_default('/') unless current_user && current_user.admin?
41: end
# File app/controllers/application_controller.rb, line 35
35: def force_xml
36: params.merge!(:format => :xml) unless params.include?(:format)
37: end
# File app/controllers/application_controller.rb, line 29
29: def http_status_code(status, exception)
30: respond_to do |format|
31: format.any { head status }
32: end
33: end