Project

General

Profile

Patch #8773 ยป 0001-Fix-typo-in-accept_key_auth-deprecation-code.patch

Alex Shulgin, 2011-07-09 15:13

View differences:

app/controllers/application_controller.rb
335 335
  
336 336
  # TODO: remove in Redmine 1.4
337 337
  def self.accept_key_auth(*actions)
338
    ActiveSupport::Deprecaction.warn "ApplicationController.accept_key_auth is deprecated and will be removed in Redmine 1.4. Use accept_rss_auth (or accept_api_auth) instead."
338
    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."
339 339
    accept_rss_auth(*actions)
340 340
  end
341 341

  
342 342
  # TODO: remove in Redmine 1.4
343 343
  def accept_key_auth_actions
344
    ActiveSupport::Deprecaction.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."
344
    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."
345 345
    self.class.accept_rss_auth
346 346
  end
347 347
  
    (1-1/1)