seed_scatter 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,4 +8,4 @@
8
8
 
9
9
  <%= class_name %>.create([
10
10
  <%= @harvest_data.join(",\n ") if @harvest_data.present? %>
11
- ], :without_protection => true)
11
+ ])
@@ -11,10 +11,12 @@ module SeedScatter
11
11
  [model.camelize.constantize]
12
12
  end
13
13
  models.each do |m|
14
- @model = m
15
- puts "Harvesting seeds for #{class_name}"
16
- @harvest_data = []
17
- dump_model(m)
14
+ if m < ActiveRecord::Base
15
+ @model = m
16
+ puts "Harvesting seeds for #{class_name}"
17
+ @harvest_data = []
18
+ dump_model(m)
19
+ end
18
20
  end
19
21
  end
20
22
 
@@ -1,3 +1,3 @@
1
1
  module SeedScatter
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seed_scatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-07 00:00:00.000000000 Z
12
+ date: 2013-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails