has_vcards 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/app/models/vcard.rb +7 -0
  2. 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
- - 3
9
- version: 0.5.3
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-12 00:00:00 +01:00
17
+ date: 2010-11-15 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency