restful_controller 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +6 -5
- data/lib/restful/base.rb +4 -4
- data/lib/restful/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f7d5e29ddac57a159de2b8b81d8e1f733e6432a
|
4
|
+
data.tar.gz: e1439edd589fc90303d0b2f0b3b00c99e168a324
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4b4ffb35ca1d06b46e3122c68223a131c0a453ced3e1810d09ea87362c14ab03876a1c07587784e23c7856dc31099e485d010827d475e541e82ed67b45f6a80
|
7
|
+
data.tar.gz: 2adce236d739ab03a201c69ed6e2936125ed2aed90b405189750182b46e5218057456ce766b8cc5731c89eafd5691e986354b92083d0eed325a936b0db58d882
|
data/README.rdoc
CHANGED
@@ -15,7 +15,7 @@ Resful requires Ruby on Rails 4.0 and Ruby 2.0.
|
|
15
15
|
|
16
16
|
To install it, just add the Restful gem to your Gemfile:
|
17
17
|
|
18
|
-
gem 'restful'
|
18
|
+
gem 'restful_controller', require: 'restful'
|
19
19
|
|
20
20
|
Run bundler command and you are all set.
|
21
21
|
|
@@ -35,7 +35,7 @@ This macro accepts 3 params:
|
|
35
35
|
Simple:
|
36
36
|
|
37
37
|
class DocumentsController < ApplicationController
|
38
|
-
include
|
38
|
+
include Restful::Base
|
39
39
|
respond_to :html
|
40
40
|
|
41
41
|
restful model: :document, strong_params: :document_params
|
@@ -51,7 +51,7 @@ document_params which will be used to allow mass assignments.
|
|
51
51
|
Strong params variation:
|
52
52
|
|
53
53
|
class DocumentsController < ApplicationController
|
54
|
-
include
|
54
|
+
include Restful::Base
|
55
55
|
respond_to :html
|
56
56
|
|
57
57
|
restful model: :document,
|
@@ -67,7 +67,7 @@ The last parameter *actions* allows you to list in an array the actions
|
|
67
67
|
that you want your controller to have:
|
68
68
|
|
69
69
|
class DocumentsController < ApplicationController
|
70
|
-
include
|
70
|
+
include Restful::Base
|
71
71
|
respond_to :html
|
72
72
|
|
73
73
|
restful model: :document, strong_params: :document_params,
|
@@ -79,7 +79,7 @@ can do it the other way, indicate list of actions that shouldn't be
|
|
79
79
|
defined:
|
80
80
|
|
81
81
|
class DocumentsController < ApplicationController
|
82
|
-
include
|
82
|
+
include Restful::Base
|
83
83
|
respond_to :html
|
84
84
|
|
85
85
|
restful model: :document, strong_params: :document_params,
|
@@ -149,3 +149,4 @@ Use issues at Github to report bugs or give feedback.
|
|
149
149
|
For detailed documentation look at http://rdoc.info/github/mariochavez/restful/master/frames
|
150
150
|
|
151
151
|
Copyright © 2013 Mario Alberto Chavez. This project uses MIT-LICENSE.
|
152
|
+
|
data/lib/restful/base.rb
CHANGED
@@ -205,7 +205,7 @@ module Restful
|
|
205
205
|
# Simple:
|
206
206
|
#
|
207
207
|
# class DocumentsController < ApplicationController
|
208
|
-
# include
|
208
|
+
# include Restful::Base
|
209
209
|
# respond_to :html
|
210
210
|
#
|
211
211
|
# restful model: :document, strong_params: :document_params
|
@@ -221,7 +221,7 @@ module Restful
|
|
221
221
|
# Strong params variation:
|
222
222
|
#
|
223
223
|
# class DocumentsController < ApplicationController
|
224
|
-
# include
|
224
|
+
# include Restful::Base
|
225
225
|
# respond_to :html
|
226
226
|
#
|
227
227
|
# restful model: :document,
|
@@ -237,7 +237,7 @@ module Restful
|
|
237
237
|
# that you want your controller to have:
|
238
238
|
#
|
239
239
|
# class DocumentsController < ApplicationController
|
240
|
-
# include
|
240
|
+
# include Restful::Base
|
241
241
|
# respond_to :html
|
242
242
|
#
|
243
243
|
# restful model: :document, strong_params: :document_params,
|
@@ -249,7 +249,7 @@ module Restful
|
|
249
249
|
# defined:
|
250
250
|
#
|
251
251
|
# class DocumentsController < ApplicationController
|
252
|
-
# include
|
252
|
+
# include Restful::Base
|
253
253
|
# respond_to :html
|
254
254
|
#
|
255
255
|
# restful model: :document, strong_params: :document_params,
|
data/lib/restful/version.rb
CHANGED