dfl-factories-and-workers 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/rails/init.rb +1 -1
- metadata +1 -1
data/rails/init.rb
CHANGED
@@ -2,7 +2,7 @@ require 'fileutils'
|
|
2
2
|
|
3
3
|
config.after_initialize do
|
4
4
|
|
5
|
-
|
5
|
+
if $*.grep(/db:*/).empty? # prevent the plugin from loading if we are simply running rake db:migrate, etc.
|
6
6
|
|
7
7
|
# if script_console_running = defined?(::IRB) && ::IRB.conf[:LOAD_MODULES] && ::IRB.conf[:LOAD_MODULES].include?('console_with_helpers')
|
8
8
|
# # mixin to Object if we are running in ./script/console
|