phcpresspro 4.0.3 → 4.0.4

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: b955b8908812d101b366afbbe606a371c3df9d3d
4
- data.tar.gz: 9815c35e73be4447b191b185793d61d3d7f085a1
3
+ metadata.gz: 96567e94bc8fbc00830f3d49dc52777c77aa9b07
4
+ data.tar.gz: d5451aa9c5cd461e616bee53ea2761ae73cf5c3f
5
5
  SHA512:
6
- metadata.gz: fbe5eafe1205a060186132e4e47f41099f686d41edf07bb6004c1c516e93c21b6bee928e7adf8ee2d5eacbfaf01360426b6afaf0518fb180c4bce1a282beaf2d
7
- data.tar.gz: b295893633d5e642b6a9be684cd95356c16c6f3945629f46899d05040cd70d35af0689baa19061cd9102124f0a02936044f6044aa744cdc6e6cb52ef0e8e96b5
6
+ metadata.gz: c259b712406a5bfc066859ef7e1107657b50ecef1bce15a7e1b264dba13ee5b0f94b57032f4dfea8b2b9e7a237b138434e0b4da95f0e0b1753faeedb24ca1721
7
+ data.tar.gz: 67c6c67d8a943986f9abe47aea2f60bc6e3394f156e0f7401b9c1131e545569ec5db89089e062b13bd723e20a161a27096bdbe72d695cb0f284425ea8a68df77
@@ -3,6 +3,9 @@ module Phcpresspro
3
3
 
4
4
  # For Image Uploads
5
5
  mount_uploader :pstimage, Phcpresspro::PstimageUploader
6
+
7
+ # Relationships
8
+ has_many :categories, class_name: 'Modules::Category'
6
9
 
7
10
  end
8
11
  end
@@ -1,5 +1,8 @@
1
1
  module Phcpresspro
2
2
  class Modules::Category < ApplicationRecord
3
+
4
+ # Relationships
5
+ belongs_to :post, class_name: 'Articles::Post'
3
6
 
4
7
  end
5
8
  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, :category_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"}) %>
21
21
  </div>
22
22
  <div class="actions">
23
23
  <%= f.submit "Publish", class: "btn btn-primary btn-sm" %>
@@ -1,3 +1,3 @@
1
1
  module Phcpresspro
2
- VERSION = "4.0.3"
2
+ VERSION = "4.0.4"
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: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts