has_vcards 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/vcard.rb +7 -0
- metadata +3 -3
data/app/models/vcard.rb
CHANGED
@@ -12,6 +12,13 @@ class Vcard < ActiveRecord::Base
|
|
12
12
|
|
13
13
|
belongs_to :object, :polymorphic => true
|
14
14
|
|
15
|
+
# Constructor
|
16
|
+
def initialize(attributes = nil)
|
17
|
+
super
|
18
|
+
|
19
|
+
build_address unless address
|
20
|
+
end
|
21
|
+
|
15
22
|
# Convenience accessors
|
16
23
|
def full_name
|
17
24
|
result = read_attribute(:full_name)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 4
|
9
|
+
version: 0.5.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Simon H\xC3\xBCrlimann"
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-11-
|
17
|
+
date: 2010-11-15 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|