diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-22 13:29:48 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-22 13:29:48 +0000 |
commit | 59849253dda5e5c9f12be51ec7a47d33214f7032 (patch) | |
tree | be3bcc35dd3879b5aaeed0d5f7ea4de783a48d81 /app/controllers | |
parent | 7c7b11591b6e9c09d987e7610225b5e735d56cdb (diff) | |
download | redmine-59849253dda5e5c9f12be51ec7a47d33214f7032.tar.gz redmine-59849253dda5e5c9f12be51ec7a47d33214f7032.zip |
remove trailing white-spaces from app/controllers/application_controller.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6525 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1a9eb16d7..260bf1f0e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -25,7 +25,7 @@ class ApplicationController < ActionController::Base layout 'base' exempt_from_layout 'builder', 'rsb' - + protect_from_forgery def handle_unverified_request super @@ -336,7 +336,7 @@ class ApplicationController < ActionController::Base @title = options[:title] || Setting.app_title render :template => "common/feed.atom.rxml", :layout => false, :content_type => 'application/atom+xml' end - + # TODO: remove in Redmine 1.4 def self.accept_key_auth(*actions) ActiveSupport::Deprecation.warn "ApplicationController.accept_key_auth is deprecated and will be removed in Redmine 1.4. Use accept_rss_auth (or accept_api_auth) instead." @@ -348,7 +348,7 @@ class ApplicationController < ActionController::Base ActiveSupport::Deprecation.warn "ApplicationController.accept_key_auth_actions is deprecated and will be removed in Redmine 1.4. Use accept_rss_auth (or accept_api_auth) instead." self.class.accept_rss_auth end - + def self.accept_rss_auth(*actions) if actions.any? write_inheritable_attribute('accept_rss_auth_actions', actions) @@ -356,11 +356,11 @@ class ApplicationController < ActionController::Base read_inheritable_attribute('accept_rss_auth_actions') || [] end end - + def accept_rss_auth?(action=action_name) self.class.accept_rss_auth.include?(action.to_sym) end - + def self.accept_api_auth(*actions) if actions.any? write_inheritable_attribute('accept_api_auth_actions', actions) @@ -368,7 +368,7 @@ class ApplicationController < ActionController::Base read_inheritable_attribute('accept_api_auth_actions') || [] end end - + def accept_api_auth?(action=action_name) self.class.accept_api_auth.include?(action.to_sym) end |