rename method

pull/2520/head
Florian Kraft 10 years ago
parent bf90240874
commit c24bf1969a
No known key found for this signature in database
GPG Key ID: 786CD08D94605A9E
  1. 4
      app/controllers/reportings_controller.rb

@ -35,7 +35,7 @@ class ReportingsController < ApplicationController
before_filter :find_project_by_project_id before_filter :find_project_by_project_id
before_filter :authorize before_filter :authorize
before_filter :find_reporting_via_source, only: [:show, :edit, :update, :confirm_destroy, :destroy] before_filter :find_reporting, only: [:show, :edit, :update, :confirm_destroy, :destroy]
before_filter :build_reporting, only: :create before_filter :build_reporting, only: :create
before_filter :check_visibility!, except: [:create, :index, :new, :available_projects] before_filter :check_visibility!, except: [:create, :index, :new, :available_projects]
@ -238,7 +238,7 @@ class ReportingsController < ApplicationController
protected protected
def find_reporting_via_source def find_reporting
@reporting = @project.reportings_via_source.find(params[:id]) @reporting = @project.reportings_via_source.find(params[:id])
end end

Loading…
Cancel
Save