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