phcmemberspro 20.5.1 → 20.5.2

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: 654978891521673ce346cf5d78fe3626c9dcfcf0
4
- data.tar.gz: 00506674aa3d541fed119152487f8a0bc893dfdb
3
+ metadata.gz: 1f61a431e5acbd42e2b2a6be8a59bf8202bced6e
4
+ data.tar.gz: ef2c21f97be90e4c2c47b6ef4668c698e05dd07a
5
5
  SHA512:
6
- metadata.gz: 0567e48187a39087f3301ae56af3e14ffda7196d3c898e7c55978a6693a9a70832a9213a6051df9e9d0cc242d9ee9bc9047d1bcd93280a6f5a2d1edf61ef46c3
7
- data.tar.gz: ff0498950f666924ce84b0ae7a1685322f9411ee0d58dc0306501493c45afb7a22efe893898ecfcfd41228bcad1a0d12a5e1a7bc7d0d08209824a57761004b67
6
+ metadata.gz: de0e8ad32afc6da16ec35a67686b7b5b2065b361b9382a5761ac337bd25fd346a4fa7065a2db11d7f1e7a67f7a609a5a3878231e25013851949a1d31477ec7f4
7
+ data.tar.gz: 2d2a53c4f67d0fa2def6b825f78b1cfd3ce68c88f19a2935fbb2ae1880343f7640f1d7f490f01597d61f21c01823bb25d86135f3f7a1d9528eb34dbb2011889d
@@ -78,7 +78,7 @@ module Phcmemberspro
78
78
 
79
79
  # Whitelist
80
80
  def member_address_params
81
- params.require(:member_address).permit(:id, :mcaddressl1, :mcaddressl2, :mccity, :mcprovince, :mccountry, :mcpostalcode, :mctype, :user_name, :profile_id, :slug, :user_id, :user_name, :membership_id, :oganization_id)
81
+ params.require(:member_address).permit(:mcaddressl1, :mcaddressl2, :mccity, :mcprovince, :mccountry, :mcpostalcode, :mctype, :user_name, :profile_id, :slug, :user_id, :user_name, :membership_id, :oganization_id)
82
82
  end
83
83
 
84
84
  end
@@ -80,7 +80,7 @@ module Phcmemberspro
80
80
 
81
81
  # Whitelist
82
82
  def member_listing_params
83
- params.require(:member_listing).permit(:id, :mbcompanyname, :mbcontactname, :mbaddressl1, :mbaddressl2, :mbcity, :mbcountry, :mbprovince, :mbpostalcode, :mbphone, :mbcontactemail, :mbwebsite, :profile_id, :slug, :user_id, :user_name, :membership_id, :oganization_id, category_ids: [])
83
+ params.require(:member_listing).permit(:mbcompanyname, :mbcontactname, :mbaddressl1, :mbaddressl2, :mbcity, :mbcountry, :mbprovince, :mbpostalcode, :mbphone, :mbcontactemail, :mbwebsite, :profile_id, :slug, :user_id, :user_name, :membership_id, :oganization_id, category_ids: [])
84
84
  end
85
85
 
86
86
  end
@@ -71,7 +71,7 @@ module Phcmemberspro
71
71
 
72
72
  # Whitelist
73
73
  def member_profile_params
74
- params.require(:member_profile).permit(:id, :mfirstname, :mlastname, :mtitle, :memail, :mphone, :mnotes, :slug, :user_id, :user_name, :membership_id, :oganization_id)
74
+ params.require(:member_profile).permit(:mfirstname, :mlastname, :mtitle, :memail, :mphone, :mnotes, :slug, :user_id, :user_name, :membership_id, :oganization_id)
75
75
  end
76
76
 
77
77
  end
@@ -20,7 +20,7 @@ module Phcmemberspro
20
20
  # Define for Multiple Records
21
21
  def phcmembers_category_slug
22
22
  [
23
- [:id, :catname]
23
+ [:user_name, :catname]
24
24
  ]
25
25
  end
26
26
 
@@ -1,9 +1,6 @@
1
1
  module Phcmemberspro
2
2
  class Directory::Categorylisting < ApplicationRecord
3
3
 
4
- # Clean URL Initialize
5
- extend FriendlyId
6
-
7
4
  # Add Paper Trail
8
5
  has_paper_trail
9
6
 
@@ -11,8 +8,5 @@ module Phcmemberspro
11
8
  belongs_to :listing, class_name: 'Phcmemberspro::Member::Listing'
12
9
  belongs_to :category, class_name: 'Phcmemberspro::Directory::Category'
13
10
 
14
- # Clean URL Define
15
- friendly_id :id, use: [:slugged, :finders]
16
-
17
11
  end
18
12
  end
@@ -40,7 +40,7 @@ module Phcmemberspro
40
40
  # Define for Multiple Records
41
41
  def phcmembers_address_slug
42
42
  [
43
- [:id, :mcaddressl1, :mccity, :mcprovince]
43
+ [:mcaddressl1, :mccity, :mcprovince]
44
44
  ]
45
45
  end
46
46
 
@@ -58,7 +58,7 @@ module Phcmemberspro
58
58
  # Define for Multiple Records
59
59
  def phcmembers_listings_slug
60
60
  [
61
- [:id, :mbcompanyname, :mbcontactname]
61
+ [:mbcompanyname, :mbcontactname]
62
62
  ]
63
63
  end
64
64
 
@@ -41,7 +41,7 @@ module Phcmemberspro
41
41
  # Define for Multiple Records
42
42
  def phcmembers_profiles_slug
43
43
  [
44
- [:id, :mfirstname, :mlastname]
44
+ [:user_name, :mfirstname, :mlastname]
45
45
  ]
46
46
  end
47
47
 
@@ -1,3 +1,3 @@
1
1
  module Phcmemberspro
2
- VERSION = "20.5.1"
2
+ VERSION = "20.5.2"
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: 20.5.1
4
+ version: 20.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts