lib/generators/tr8n/tr8n_generator.rb in tr8n-3.1.5 vs lib/generators/tr8n/tr8n_generator.rb in tr8n-3.1.6
- old
+ new
@@ -43,10 +43,10 @@
def create_migration_file
migration_template 'db/create_tr8n_tables.rb', 'db/migrate/create_tr8n_tables.rb'
end
def copy_configuration
- config_source = File.expand_path('../../../../config/tr8n', __FILE__)
+ config_source = File.expand_path("#{self.class.source_root}/config', __FILE__)
system "rsync -ruv #{config_source} #{Rails.root}/config"
end
def copy_layouts
layouts_source = File.expand_path("#{self.class.source_root}/layouts", __FILE__)