has_vcards 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,12 @@
1
1
  class Address < ActiveRecord::Base
2
2
  belongs_to :vcard
3
+
4
+ # Helpers
5
+ def to_s
6
+ I18n.translate('has_vcards.address.to_s',
7
+ :street_address => street_address,
8
+ :postal_code => postal_code,
9
+ :locality => locality
10
+ )
11
+ end
3
12
  end
@@ -1,4 +1,8 @@
1
1
  de:
2
+ has_vcards:
3
+ address:
4
+ to_s: %{street_address}, %{postal_code} #{locality}
5
+
2
6
  activerecord:
3
7
  attributes:
4
8
  vcard:
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 6
8
- - 1
9
- version: 0.6.1
7
+ - 7
8
+ - 0
9
+ version: 0.7.0
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-12-06 00:00:00 +01:00
17
+ date: 2010-12-16 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency