Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
lookup_missing_generator(class_id)
public
Lookup missing generators using const_missing. This allows any generator to
reference another without having to know its location: RubyGems,
~/.rails/generators, and RAILS_ROOT/generators.
Show source
def lookup_missing_generator(class_id)
if md = /(.+)Generator$/.match(class_id.to_s)
name = md.captures.first.demodulize.underscore
Rails::Generator::Base.lookup(name).klass
else
const_missing_before_generators(class_id)
end
end