Sha256: 94c01fc4cc3acd6d0da38e0625de19de80a0f9eee2b230b94c89217d195fd486
Contents?: true
Size: 377 Bytes
Versions: 2
Compression:
Stored size: 377 Bytes
Contents
class SettlerGenerator < Rails::Generator::NamedBase def initialize(runtime_args, runtime_options = {}) runtime_args << 'Settler' if runtime_args.empty? super end def manifest record do |m| m.file "settler.yml", "config/settler.yml" m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => 'add_settings_table' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
settler-1.0.1 | generators/settler/settler_generator.rb |
settler-1.0.0 | generators/settler/settler_generator.rb |