Module: Redmine::Reporting::Rails::ControllerMethods

Defined in:
lib/redmine/reporting/rails/controller_methods.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
# File 'lib/redmine/reporting/rails/controller_methods.rb', line 6

def self.included(base)
  base.class_eval do
    helper_method :redmine_report_reference_id
  end
end

Instance Method Details

#redmine_reporting_request_dataObject



12
13
14
15
16
17
18
19
20
# File 'lib/redmine/reporting/rails/controller_methods.rb', line 12

def redmine_reporting_request_data
  {
    :params           => redmine_reporting_filter_hash(params.to_hash),
    :session          => redmine_reporting_filter_hash(session.to_hash),
    :controller       => params[:controller],
    :action           => params[:action],
    :url              => redmine_reporting_request_url
  }
end