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: d84398eff180e5cabd02b2e6e4cdeefdceabae1e
4
- data.tar.gz: 4d2e6585aab3392dc5652538c1607669c614a187
3
+ metadata.gz: 018fb2ebf5f43e9ede441672a24dec52d74d3133
4
+ data.tar.gz: cdfdefa8b194291e2d0d03af2f3ab6115fb88366
5
5
  SHA512:
6
- metadata.gz: 0ff1fde390f5c48aafe46cd6b5b8a3b71ff4c3b63ba827ddd6423a3cc3bd8dd7cbeb708e58dd01e7548c7358d059b9bd82e3c0d259f6d14940e95394623c7fa9
7
- data.tar.gz: 39672b4dd0ba99461bb656495173e7a9a16c8fc92d8a83274c03a735bc849ba1ccef6ad69ce1742555077bb1d81d354be956e1616ea6d873c2dc4cdf64bbbd21
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 members_contact
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 members_listing
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,
@@ -1,3 +1,3 @@
1
1
  module Phcmemberspro
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcmemberspro
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts