lib/tasks/undefine.rake in radiant-0.6.9 vs lib/tasks/undefine.rake in radiant-0.7.0
- old
+ new
@@ -1,6 +1,6 @@
# Undefined unneeded tasks in instance mode
-unless File.directory? "#{RAILS_ROOT}/app"
+unless Radiant.app?
def undefine_task(*names)
app = Rake.application
tasks = app.instance_variable_get('@tasks')
names.flatten.each { |name| tasks.delete(name) }
end
\ No newline at end of file