phcpresspro 3.1.1 → 3.1.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: 7a494cfa66c0c564a6b44d0b5b7f5ce8bc5f51e6
4
- data.tar.gz: 11f10c4948d990ed31218741fe962228460567c5
3
+ metadata.gz: 24f55bfe8e46c71ec791e56efbad2527db87008c
4
+ data.tar.gz: 6cc9de76b6ea12b9a7a5562d8fdd1fd76a749144
5
5
  SHA512:
6
- metadata.gz: 43da43e2c08fb6249236200dea834a13b01703e960d625e2e41189f178a35df9b69c3f291d82010534e9cb3aae870a8fc298e058a63937e78b1d14587ed697a5
7
- data.tar.gz: 68581a0f29993a1a694241cc52c1f6dcec05d6ee1a1b1484722cc3e4b62cbff66fa458d37f4cae13674a2465e256dbc4eb853554d7a323390a464ab00c37a480
6
+ metadata.gz: 3a3b57b999ae8f74f4564345b50f210cd843ca380f47901c45e5ac112b6a312bbc084b1c60a559435f312641abc443a83b779e7b2a10f6eda0aeb4b029ca5488
7
+ data.tar.gz: 1a6d5e5cd2bc411a6a1e7541a9764ab0d10dd576999c076af46f9df8e4b2a832b52263f2df46f232618e69ffe83ca6fbd9d3568f5760e2e4213e787d0a947d97
@@ -58,7 +58,7 @@ module Phcpresspro
58
58
 
59
59
  # Whitelist on what can be posted
60
60
  def blog_post_params
61
- params.require(:blog_post).permit(:blogpsttitle, :blogpsttext, :blogpstexcerpts, :pststatus, :pstimage, :remove_pstimage, :pstcategory_id, :user_id, :membership_id, :oganization_id)
61
+ params.require(:blog_post).permit(:blogpsttitle, :blogpsttext, :blogpstexcerpts, :pststatus, :pstcategory, :pstimage, :remove_pstimage, :category_id, :user_id, :membership_id, :oganization_id)
62
62
  end
63
63
 
64
64
  end
@@ -58,7 +58,7 @@ module Phcpresspro
58
58
 
59
59
  # Whitelist
60
60
  def news_post_params
61
- params.require(:news_post).permit(:newspsttitle, :newspsttext, :newspstexcerpts, :pststatus, :pstimage, :remove_pstimage, :pstcategory_id, :user_id, :membership_id, :oganization_id)
61
+ params.require(:news_post).permit(:newspsttitle, :newspsttext, :newspstexcerpts, :pststatus, :pstcategory, :pstimage, :remove_pstimage, :category_id, :user_id, :membership_id, :oganization_id)
62
62
  end
63
63
 
64
64
  end
@@ -17,7 +17,7 @@
17
17
  </div>
18
18
  <div class="form-group">
19
19
  <%= f.label :pstcategory, "Post Category" %>
20
- <%= collection_select(:pstcategory, :pstcategory_id, Phcpresspro::Modules::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
20
+ <%= collection_select(:pstcategory, :category_id, Phcpresspro::Modules::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
21
21
  </div>
22
22
  <div class="actions">
23
23
  <%= f.submit "Publish Blog Article", class: "btn btn-primary btn-sm" %>
@@ -17,7 +17,7 @@
17
17
  </div>
18
18
  <div class="form-group">
19
19
  <%= f.label :pstcategory, "Post Category" %>
20
- <%= collection_select(:pstcategory, :pstcategory_id, Phcpresspro::Modules::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
20
+ <%= collection_select(:pstcategory, :category_id, Phcpresspro::Modules::Category.order('catname'), :id, :catname, {}, {class: "form-control form-control-sm"}) %>
21
21
  </div>
22
22
  <div class="actions">
23
23
  <%= f.submit "Publish News Article", class: "btn btn-primary btn-sm" %>
@@ -8,7 +8,7 @@ class CreatePhcpressproNewsPosts < ActiveRecord::Migration[5.0]
8
8
  t.text :newspstexcerpts
9
9
  t.string :pstimage
10
10
 
11
- t.integer :pstcategory_id
11
+ t.references :category, index: true
12
12
 
13
13
  t.string :user_id
14
14
  t.string :membership_id
@@ -8,7 +8,7 @@ class CreatePhcpressproBlogPosts < ActiveRecord::Migration[5.0]
8
8
  t.text :blogpstexcerpts
9
9
  t.string :pstimage
10
10
 
11
- t.integer :pstcategory_id
11
+ t.references :category, index: true
12
12
 
13
13
  t.string :user_id
14
14
  t.string :membership_id
@@ -1,3 +1,3 @@
1
1
  module Phcpresspro
2
- VERSION = "3.1.1"
2
+ VERSION = "3.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpresspro
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts