Created
February 12, 2014 16:35
-
-
Save dpritchett/8959214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Form buttons allow user to pick a named scope for their order list | |
def render_with_user_scope(*args) | |
add_user_scope_to_result_set! if (action == :index) | |
render_without_user_scope(*args) | |
end | |
alias_method_chain :render, :user_scope |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment