has_many_emails 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/has_many_emails.gemspec +1 -1
- data/lib/generators/templates/create_email_address.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/has_many_emails.gemspec
CHANGED
@@ -18,7 +18,7 @@ class <%= migration_name %> < ActiveRecord::Migration
|
|
18
18
|
if <%= model %>.column_names.include? 'email'
|
19
19
|
raise "PROBLEM! <%= model %> does not have 'has_many_emails'. Insert it before usage." unless <%= model %>.respond_to? :has_many_emails
|
20
20
|
<%= model %>.all.each do |owner|
|
21
|
-
|
21
|
+
owner.add_email owner.attributes['email']
|
22
22
|
end
|
23
23
|
end
|
24
24
|
<% end %>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_many_emails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Danil Pismenny
|