replace *_filter by *_action

pull/6827/head
Jens Ulferts 8 years ago committed by Oliver Günther
parent daef1d9b28
commit db0f82504e
  1. 2
      app/controllers/rb_application_controller.rb
  2. 2
      app/controllers/rb_export_card_configurations_controller.rb
  3. 2
      app/controllers/rb_master_backlogs_controller.rb
  4. 10
      lib/open_project/backlogs/patches/versions_controller_patch.rb

@ -37,7 +37,7 @@
class RbApplicationController < ApplicationController
helper :rb_common
before_filter :load_sprint_and_project, :check_if_plugin_is_configured, :authorize
before_action :load_sprint_and_project, :check_if_plugin_is_configured, :authorize
skip_before_action :verify_authenticity_token, if: -> { Rails.env.test? }

@ -36,7 +36,7 @@
class RbExportCardConfigurationsController < RbApplicationController
include OpenProject::PdfExport::ExportCard
before_filter :load_project_and_sprint
before_action :load_project_and_sprint
def index
@configs = ExportCardConfiguration.active

@ -36,7 +36,7 @@
class RbMasterBacklogsController < RbApplicationController
menu_item :backlogs
before_filter :set_export_card_config_meta
before_action :set_export_card_config_meta
def index
@owner_backlogs = Backlog.owner_backlogs(@project)

@ -42,13 +42,13 @@ module OpenProject::Backlogs::Patches::VersionsControllerPatch
helper :version_settings
# Find project explicitly on update and edit
skip_before_filter :find_project_from_association, only: [:edit, :update]
skip_before_filter :find_model_object, only: [:edit, :update]
prepend_before_filter :find_project_and_version, only: [:edit, :update]
skip_before_action :find_project_from_association, only: [:edit, :update]
skip_before_action :find_model_object, only: [:edit, :update]
prepend_before_action :find_project_and_version, only: [:edit, :update]
before_filter :add_project_to_version_settings_attributes, only: [:update, :create]
before_action :add_project_to_version_settings_attributes, only: [:update, :create]
before_filter :whitelist_update_params, only: :update
before_action :whitelist_update_params, only: :update
def whitelist_update_params
if @project != @version.project

Loading…
Cancel
Save