phcmemberspro 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 018fb2ebf5f43e9ede441672a24dec52d74d3133
|
4
|
+
data.tar.gz: cdfdefa8b194291e2d0d03af2f3ab6115fb88366
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e1bfeef8da80181876ee58311a9218252173030d0247a3ffa081706aadd14e50c6e3ce5faabbf9d8aae69463a7a5576c0aae0e169772eabff89119481bcfb61
|
7
|
+
data.tar.gz: b319c23eab21c4c2f4abe87b3b413ecbe17cf6f2b17ed90e4b6d4554d023bf3b59c8046e9c3d4bd8f38dfb4fbb90342cac4718405d36bae4e73c4bc0ca86bc62
|
@@ -7,13 +7,14 @@ module Phcmemberspro
|
|
7
7
|
end
|
8
8
|
|
9
9
|
# Translate Country Code to Name
|
10
|
-
def
|
10
|
+
def contact_country_name
|
11
11
|
country = ISO3166::Country[mccountry]
|
12
12
|
country.translations[I18n.locale.to_s] || country.name
|
13
13
|
end
|
14
14
|
|
15
15
|
# Model Relationships
|
16
16
|
belongs_to :main, class_name: 'Members::Main'
|
17
|
+
before_create :contact_country_name
|
17
18
|
|
18
19
|
# Validation for Form Fields
|
19
20
|
validates :mccontactname,
|
@@ -7,7 +7,7 @@ module Phcmemberspro
|
|
7
7
|
end
|
8
8
|
|
9
9
|
# Translate Country Code to Name
|
10
|
-
def
|
10
|
+
def listing_country_name
|
11
11
|
country = ISO3166::Country[mlcountry]
|
12
12
|
country.translations[I18n.locale.to_s] || country.name
|
13
13
|
end
|
@@ -15,6 +15,7 @@ module Phcmemberspro
|
|
15
15
|
# Model Relationships
|
16
16
|
belongs_to :main, class_name: 'Members::Main'
|
17
17
|
has_many :catlists, class_name: 'Directory::Catlist', dependent: :destroy
|
18
|
+
before_create :listing_country_name
|
18
19
|
|
19
20
|
# Validation for Form Fields
|
20
21
|
validates :mlcontactname,
|