Method: Admin::ActivitiesWithPricesController#action_links_order
- Defined in:
- app/controllers/admin/activities_with_prices_controller.rb
#action_links_order ⇒ Object
This adjusts the order of the link so that move appears to the left:
24 25 26 27 |
# File 'app/controllers/admin/activities_with_prices_controller.rb', line 24 def action_links_order links = active_scaffold_config.action_links links.sort_by{ |l| ( l.action == "move_to_invoice" ) ? -1 : 1 } end |