Tag: redmine

Daily Refactor #11: Extract action in ReportsController

I’m back up in the ReportsController now, getting ready to tackle some more of the duplication. The Refactoring Before 1 2 3 4 5 # config/routes.rb map.with_options :controller => 'reports', :action => 'issue_report', :conditions => {:method => :get} do |reports| reports.connect 'projects/:id/issues/report' reports.connect 'projects/:id/issues/report/:detail' end# config/routes.rb map.with_options :controller => 'reports', :action => 'issue_report', :conditions => …

Read more