class Rails::Generators::Base
def self.default_for_option(config, name, options, default)
Return default for the option name given doing a lookup in config.
def self.default_for_option(config, name, options, default) if generator_name and c = config[generator_name.to_sym] and c.key?(name) c[name] elsif base_name and c = config[base_name.to_sym] and c.key?(name) c[name] elsif config[:rails].key?(name) config[:rails][name] else default end end