Skip to content

Instantly share code, notes, and snippets.

@FineLineAutomation
Created October 28, 2013 21:28
Show Gist options
  • Save FineLineAutomation/7205157 to your computer and use it in GitHub Desktop.
Save FineLineAutomation/7205157 to your computer and use it in GitHub Desktop.
# This is what is currently in app/controllers/admin/orders_controller
before_filter :load_order, :only => [:show, :edit, :update, :fire, :resend]
# I want to add the print action to the filter.
# In my controller decorater, I have the below line
before_filter :load_order, :only => [:show, :edit, :update, :fire, :resend, :print]
# I am worried that redefining the filter will cause problems with extensions.
# Is there a syntax I can use to just add the print action to the filter?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment