-
- Downloads
There was an error fetching the commit references. Please try again later.
DRY up diff_for_path actions
1. Move render method to a concern, not a helper. 2. Let DiffHelper#diff_options automatically add the path option. 3. Move more instance var definitions to before filters.
Showing
- app/controllers/concerns/diff_for_path.rb 23 additions, 0 deletionsapp/controllers/concerns/diff_for_path.rb
- app/controllers/projects/commit_controller.rb 27 additions, 34 deletionsapp/controllers/projects/commit_controller.rb
- app/controllers/projects/compare_controller.rb 28 additions, 40 deletionsapp/controllers/projects/compare_controller.rb
- app/controllers/projects/merge_requests_controller.rb 3 additions, 3 deletionsapp/controllers/projects/merge_requests_controller.rb
- app/helpers/diff_helper.rb 3 additions, 21 deletionsapp/helpers/diff_helper.rb
app/controllers/concerns/diff_for_path.rb
0 → 100644
Please register or sign in to comment