Sha256: b543ce61333bee745cf9bbb595a673dac2701f12aef6b511b2e3f42df542a948
Contents?: true
Size: 738 Bytes
Versions: 6
Compression:
Stored size: 738 Bytes
Contents
require 'rails/generators/base' require 'rails/generators/active_record' require 'rails/generators/migration' module Comatose module Generators class ComatoseGenerator < Rails::Generators::NamedBase namespace :comatose source_root File.expand_path("../templates", __FILE__) include Rails::Generators::Migration extend ActiveRecord::Generators::Migration def create_migration_file migration_template "migration.erb", "db/migrate/add_comatose_support.rb" end def create_init_file template "comatose.rb", "config/initializers/comatose.rb" end def copy_rake_files # TODO end def copy_assets # TODO end end end end
Version data entries
6 entries across 6 versions & 1 rubygems