Introduction
Introduction Statistics Contact Development Disclaimer Help
[fixes #12] make sure we use Thor style source_root for migration generator - r…
Log
Files
Refs
README
---
commit dcdedace51280ef73a205161881a4cc9fd7994cb
parent 0afe9dbd5fb5cf6f67e834bea55b61e0a15223c9
Author: Lennart Melzer <[email protected]>
Date: Tue, 13 Mar 2012 11:49:38 +0100
[fixes #12] make sure we use Thor style source_root for migration generator
Diffstat:
M generators/reportable_migration/re… | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/generators/reportable_migration/reportable_migration_generator.rb …
@@ -2,11 +2,10 @@ class ReportableMigrationGenerator < Rails::Generators::Base
include Rails::Generators::Migration
+ source_root File.expand_path('../templates/', __FILE__)
+
def create_migration
- migration_template(
- File.join(File.dirname(__FILE__), 'templates', 'migration.rb'),
- 'db/migrate/create_reportable_cache.rb'
- )
+ migration_template('migration.rb', 'db/migrate/create_reportable_cache.rb')
end
def self.next_migration_number(dirname)
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.