Tag: extract-method

Daily Refactor #43: Extract Method in StuffToDoController

The Refactoring Today I used extract method to start cleaning up the new TimeGrid code I recently merged into the StuffToDo plugin. Before 1 2 3 4 5 # app/controllers/stuff_to_do_controller.rb class StuffToDoController "#{Issue.table_name}.id ASC") @time_entry = TimeEntry.new end end# app/controllers/stuff_to_do_controller.rb class StuffToDoController "#{Issue.table_name}.id ASC") @time_entry = TimeEntry.new end end After 1 2 3 4 5 …

Read more