Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding FIXTURES example to rake task comments & removing dead map() c…

…all in option building
  • Loading branch information...
commit 230d9c6e587dff98d0126302825974dd185ea33b 1 parent a6520f9
@nruth nruth authored committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/tasks/db.rake
View
4 lib/tasks/db.rake
@@ -6,7 +6,7 @@
# PROGRESS=false|0 show progress (default true)
# CLOBBER=false|0 clobber fixtures on dump (default true)
# RAISE_ERROR=false|0 silence runtime errors (default true)
-# FIXTURES -- specific fixture files to load, invalid argument for dump tasks TODO: params format example
+# FIXTURES=comma,sep,list specific fixture files to load, invalid argument for dump tasks, should be relative filenames e.g. users/0000/0001.yml
require 'git_friendly_dumper'
namespace :db do
@@ -42,7 +42,7 @@ namespace :db do
:clobber_fixtures => ['1', 'true'].include?(ENV['CLOBBER']) ? true : false,
:limit => ENV['LIMIT'] || 2500,
:raise_error => ['0', 'false'].include?(ENV['RAISE_ERROR']) ? false : true,
- :fixtures => ENV['FIXTURES'] && ENV['FIXTURES'].split(',').map()
+ :fixtures => ENV['FIXTURES'] && ENV['FIXTURES'].split(',')
}
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.