Sha256: 37d9b182011ee228c56c62a50c777707b07a5a1c03a26fad3513831c4a73e807
Contents?: true
Size: 450 Bytes
Versions: 3
Compression:
Stored size: 450 Bytes
Contents
require "rails/generators/active_record" module Monocle class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path("../templates", __FILE__) def copy_migration migration_template "migration.rb", "db/migrate/create_monocle_views.rb" end def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
monocle-0.1.1 | lib/generators/monocle/install_generator.rb |
monocle-0.1.0 | lib/generators/monocle/install_generator.rb |
monocle-0.0.1 | lib/generators/monocle/install_generator.rb |