phcdevworks_tutorials 1.2.3 → 1.2.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ff71cf7890e9431a3c6aeb70737f58e3949ce986a891ea908ec663a7dd9d0a8
|
4
|
+
data.tar.gz: d078f7ef2afdcb5ee40b42903b0b020083ff7b3bf6f2a0260cbc001d39ad87d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d56273632043b9429e4ec8c696e12942aaff4696b8d11c3cee50dc05e25d77b4dfe73e798018ca4b46b3e3a7afd6ac830247e94275c018b04b6dd47a0c90024b
|
7
|
+
data.tar.gz: 9004b26ba26941eb7363a5837d306b54c7fc451ce47f3d900222c52f59a39f2513a4628748f18a7b259f9a6320a08e324fb17e6fe2e74d8b890aa970c036e682
|
@@ -88,7 +88,7 @@ module PhcdevworksTutorials
|
|
88
88
|
|
89
89
|
# Whitelist
|
90
90
|
def tutorial_step_params
|
91
|
-
params.require(:tutorial_step).permit(:
|
91
|
+
params.require(:tutorial_step).permit(:tutorial_step_number, :tutorial_step_body, :tutorial_step_image, :post_id, :slug, :user_id, :org_id)
|
92
92
|
end
|
93
93
|
|
94
94
|
end
|
@@ -8,9 +8,9 @@ module PhcdevworksTutorials
|
|
8
8
|
has_one_attached :tutorial_post_image
|
9
9
|
|
10
10
|
# Relationships
|
11
|
-
has_and_belongs_to_many :categories, class_name:
|
11
|
+
has_and_belongs_to_many :categories, class_name: "Tutorial::Category", :join_table => "categories_posts", :dependent => :destroy
|
12
12
|
has_many :steps, class_name: "Tutorial::Step"
|
13
|
-
belongs_to :user, class_name:
|
13
|
+
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
14
14
|
|
15
15
|
# Form Fields Validation
|
16
16
|
validates :tutorial_post_title,
|
@@ -6,6 +6,8 @@ module PhcdevworksTutorials
|
|
6
6
|
|
7
7
|
# Relationships
|
8
8
|
belongs_to :post, class_name: "PhcdevworksTutorials::Tutorial::Post"
|
9
|
+
has_many :categories, class_name: "Tutorial::Category", :through => :post
|
10
|
+
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
9
11
|
|
10
12
|
end
|
11
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_tutorials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|