Module: ModelsGenerator
- Defined in:
- lib/models_generator/config.rb,
lib/models_generator/version.rb
Defined Under Namespace
Modules: Generators Classes: Configuration
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
-
.config ⇒ Object
Global settings for ModelsGenerator.
-
.configure {|@config ||= ModelsGenerator::Configuration.new| ... } ⇒ Object
Configures global settings for ModelsGenerator ModelsGenerator.configure do |config| config.all_name = :instances end.
Class Method Details
.config ⇒ Object
Global settings for ModelsGenerator
13 14 15 |
# File 'lib/models_generator/config.rb', line 13 def self.config @config end |
.configure {|@config ||= ModelsGenerator::Configuration.new| ... } ⇒ Object
Configures global settings for ModelsGenerator
ModelsGenerator.configure do |config|
config.all_name = :instances
end
8 9 10 |
# File 'lib/models_generator/config.rb', line 8 def self.configure(&block) yield @config ||= ModelsGenerator::Configuration.new end |