From 53b93af3add1bb3e642fde477c8955d0c8c53de5 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Fri, 16 Mar 2012 18:38:01 +0100 Subject: [PATCH] move the engine from to travis/engine --- lib/travis/engine.rb | 11 +++++++++++ lib/travis_core/engine.rb | 4 ---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 lib/travis/engine.rb delete mode 100644 lib/travis_core/engine.rb diff --git a/lib/travis/engine.rb b/lib/travis/engine.rb new file mode 100644 index 000000000..9758b768c --- /dev/null +++ b/lib/travis/engine.rb @@ -0,0 +1,11 @@ +require 'travis' + +module Travis + class Engine < Rails::Engine + initializer 'add migrations path' do |app| + # need to insert to migrations_paths on Migrator because Rails' stupid + # rake tasks copy them over before loading the engines (Rails <= 3.2.2) + ActiveRecord::Migrator.migrations_paths << root.join('db/migrate').to_s + end + end +end diff --git a/lib/travis_core/engine.rb b/lib/travis_core/engine.rb deleted file mode 100644 index 41adb3cde..000000000 --- a/lib/travis_core/engine.rb +++ /dev/null @@ -1,4 +0,0 @@ -module TravisCore - class Engine < ::Rails::Engine - end -end