lib/rake_roll.rb in rake_roll-0.2.2 vs lib/rake_roll.rb in rake_roll-0.2.3
- old
+ new
@@ -2,10 +2,13 @@
require "rake_roll/version"
require "rake_roll/versioning"
require "rake_roll/never"
require "rake_roll/git_commands"
require "rake_roll/roller"
-import File.join(File.dirname(__FILE__), "rake_roll/tasks/roll.rake")
+if defined?(Rails)
+ require 'rake_roll/railtie'
+else
+ import File.join(File.dirname(__FILE__), "rake_roll/tasks/roll.rake")
+end
module RakeRoll
- require 'rake_roll/railtie' if defined?(Rails)
end