phcpresspro 4.2.0 → 4.2.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: 8d05c6014077e1a5513cba1b48a123a5631cb696
4
- data.tar.gz: c35d553ba4210a91a79d2e4c4325abfa635b07fd
3
+ metadata.gz: 7b25b2de2c5ad7610ee47691d50980a52e1b784e
4
+ data.tar.gz: 225b6ad673441cff60d6e61a23ac23191bb4ff5e
5
5
  SHA512:
6
- metadata.gz: 1730dec9a42e1d437e667d63e0c07bbef1b8e55b917d54126bb7ae97553d235ec58ca231cf4437fc8a576a427b8ed5d0011448cf92cba298ed8e66074190f8e8
7
- data.tar.gz: cb438fc9ff5adf4c3aaa6e2855cab314ce1f3354770ae673bd92db491995e7aa125648e802a8131e7cbb72cd91271af73e4eff1f534efcd56feb9efab6d69d98
6
+ metadata.gz: dedf5f753551ca134eb3cb3107f8fdd0a043c53e36c6613203213809a4b9ea219266d80a18bdaa82ff9ec6a9ba5bf639ea0820f29b5aca4a4c85daf694053a88
7
+ data.tar.gz: 069463ae599b2dccf5f100b287ecb6ba9c5a0b77a63d33aad1a8af9f8a76bf119f95730cbdf6676b6a1a35ffd9869252b99d3e42fa089f4c6d7c8d5d2dc07ea4
@@ -5,7 +5,7 @@ module Phcpresspro
5
5
  mount_uploader :pstimage, Phcpresspro::PstimageUploader
6
6
 
7
7
  # Relationships
8
- has_many :connections, class_name: 'Phcpresspro::Modules::Connection'
8
+ has_many :connections, class_name: 'Phcpresspro::Modules::Connection', dependent: :destroy
9
9
  has_many :categories, class_name: 'Phcpresspro::Modules::Category', :through => :connections
10
10
 
11
11
  end
@@ -2,7 +2,7 @@ module Phcpresspro
2
2
  class Modules::Category < ApplicationRecord
3
3
 
4
4
  # Relationships
5
- has_many :connections, class_name: 'Phcpresspro::Modules::Connection'
5
+ has_many :connections, class_name: 'Phcpresspro::Modules::Connection', dependent: :destroy
6
6
  has_many :posts, class_name: 'Phcpresspro::Modules::Category', :through => :connections
7
7
 
8
8
  end
@@ -20,8 +20,8 @@
20
20
  <tbody>
21
21
  <% @modules_connections.each do |modules_connection| %>
22
22
  <tr>
23
- <td>modules_connection.categories.catname</td>
24
- <td>modules_connection.posts.psttitle</td>
23
+ <td><%= modules_connection.categories.catname %></td>
24
+ <td><%= modules_connection.posts.psttitle %></td>
25
25
  <td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td>
26
26
  <td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td>
27
27
  <td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td>
@@ -1,3 +1,3 @@
1
1
  module Phcpresspro
2
- VERSION = "4.2.0"
2
+ VERSION = "4.2.1"
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.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts