Sha256: 96df9d7b383f4e96ea402fbed9b9592f3e4905cd571003aa71e3e75bbef6bcfa
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
class CaerbannogGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def self.next_migration_number(path) Time.now.utc.strftime('%Y%m%d%H%M%S') end def copy_migration migration_template 'add_caerbannog_messages.rb', 'db/migrate/add_caerbannog_messages.rb' end def create_message_model copy_file 'caerbannog_message.rb', 'app/models/caerbannog_message.rb' end def create_caerbannog_initializer copy_file 'caerbannog_initializer.rb', 'config/initializers/caerbannog_initializer.rb' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
caerbannog-0.2.1 | lib/generators/caerbannog_generator.rb |
caerbannog-0.2.0 | lib/generators/caerbannog_generator.rb |