update_or_delete_or_create 4.1.0.1 → 4.1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/update_or_create_tasks.rake +11 -4
- data/lib/update_or_create/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7152d177103a2d46afd7e9eb4fdf037a14945128
|
4
|
+
data.tar.gz: e334c606b6fdaf858174d4bcb46881ccf96fc770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe05417bb0931d6816f3352b36da6001028fb712a3407de825f2e59a61083024d31652c9d8fb962ed7ee862fccef7fc34faa07f1c2891991051eef08fe8abd8c
|
7
|
+
data.tar.gz: 5b4a76852f79a5443b33b377ed7a944ad6ebd06f758f035f3d9f32743da523571488e56a66b5cba3bb7ee1e3fb24e47104b64728d49b7b1140aa15728f9ba263
|
@@ -1,4 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
namespace :db do
|
2
|
+
namespace :seed do
|
3
|
+
Dir[File.join(Rails.root, 'db', 'seeds', '*.rb')].each do |filename|
|
4
|
+
task_name = File.basename(filename, '.rb').intern
|
5
|
+
task task_name => :environment do
|
6
|
+
load(filename) if File.exist?(filename)
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|