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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b25b2de2c5ad7610ee47691d50980a52e1b784e
|
4
|
+
data.tar.gz: 225b6ad673441cff60d6e61a23ac23191bb4ff5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
24
|
-
<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>
|
data/lib/phcpresspro/version.rb
CHANGED