instance method
all_application_helpers
Ruby on Rails 2.3.18
Since v2.2.3 PrivateSignature
all_application_helpers()
Extract helper names from files in app/helpers/**/*.rb
Source
# File actionpack/lib/action_controller/helpers.rb, line 219
def all_application_helpers
extract = /^#{Regexp.quote(helpers_dir)}\/?(.*)_helper.rb$/
Dir["#{helpers_dir}/**/*_helper.rb"].map { |file| file.sub extract, '\1' }
end
Defined in actionpack/lib/action_controller/helpers.rb line 219
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Helpers::ClassMethods