phcdevworks_tutorials 0.4.0 → 0.5.0

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: fcd0ce05dfbe3900903ae92a916eadc062eb8f671a4b45ae6a0f991925f7e4d4
4
- data.tar.gz: 79184d9aad19bc6bdce434638563f36116a5da63672f78083bc09a829c68e92d
3
+ metadata.gz: 414de104ac32aa7fc1b06cac23e7515b13a8651a9005aa572e4955f28c51cb1a
4
+ data.tar.gz: a6e2ecb58fc6e0dea28ba6337968373e2c73944a77821f2dc269aa42cca80563
5
5
  SHA512:
6
- metadata.gz: 620326c3839bc41b6e0e3dc62e41785eae68a842abdc858a15841e6df50cf4a4bed556fc17e8df4e7cc5b7127898bc3966a4ea9beb0b6dfbea9246960abf608e
7
- data.tar.gz: 5f9fa81875b042e31b8b6f8ca8e2e6433a045a5b34c371d7a49d05ea49ed7dcd2700bd04782f71145be6a56893d386be79e050e2794a83defbefe60bf78f2f75
6
+ metadata.gz: 295b22d71c59b7b72bf5051ec2562fd872f435a277a14dc4ffe68eb7e917e9b9487ed0a522721f3fa3a65a62c32b414fe9dc6f26cb4b820c73caaa32bf73ebf5
7
+ data.tar.gz: f3d7ffe1e9c695a5df1cbd17faeae95e0015fcc97c4c9778cb3de0403ea830db96d9a5dc0e595d3bc77855494e1a878b61a9ab3565eb32af7606084442b3563d
@@ -16,6 +16,7 @@ module PhcdevworksTutorials
16
16
 
17
17
  # GET /tutorial/categories/1
18
18
  def show
19
+ @tutorial_category = Tutorial::Category.friendly.find(params[:id])
19
20
  end
20
21
 
21
22
  # GET /tutorial/categories/new
@@ -69,7 +70,7 @@ module PhcdevworksTutorials
69
70
 
70
71
  # Common Callbacks
71
72
  def set_tutorial_category
72
- @tutorial_category = Tutorial::Category.find(params[:id])
73
+ @tutorial_category = Tutorial::Category.friendly.find(params[:id])
73
74
  end
74
75
 
75
76
  # Whitelist
@@ -16,6 +16,7 @@ module PhcdevworksTutorials
16
16
 
17
17
  # GET /tutorial/posts/1
18
18
  def show
19
+ @tutorial_post = Tutorial::Post.friendly.find(params[:id])
19
20
  end
20
21
 
21
22
  # GET /tutorial/posts/new
@@ -69,7 +70,7 @@ module PhcdevworksTutorials
69
70
 
70
71
  # Common Callbacks
71
72
  def set_tutorial_post
72
- @tutorial_post = Tutorial::Post.find(params[:id])
73
+ @tutorial_post = Tutorial::Post.friendly.find(params[:id])
73
74
  end
74
75
 
75
76
  # Whitelist
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksTutorials
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  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: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-15 00:00:00.000000000 Z
11
+ date: 2019-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails