instance method
cache
Ruby on Rails 2.3.18
Last seen in v2.3.18 Private — implementation detail, not part of the public APIAvailable in: v2.2.3 v2.3.18
Signature
cache()
Lookup and cache every generator from the source list.
Source
# File railties/lib/rails_generator/lookup.rb, line 145
def cache
@cache ||= sources.inject([]) { |cache, source| cache + source.to_a }
end
Defined in railties/lib/rails_generator/lookup.rb line 145
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generator::Lookup::ClassMethods