Skip to content

Instantly share code, notes, and snippets.

@stex
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stex/9528784 to your computer and use it in GitHub Desktop.
Save stex/9528784 to your computer and use it in GitHub Desktop.
Helper Method to exclude certain helpers from all_application_helpers
# Don't forget to turn auto-loading all helpers off:
# config.action_controller.include_all_helpers = false
class ActionController::Base
class << self
def all_helpers(options = {})
all_helpers_from_path(helpers_path) - Array(options[:except])
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment