restful_controller 0.0.2 → 0.0.3

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: 15e4f8de8ab53f6ca410c248e9b84d4ba7afe2c4
4
- data.tar.gz: 21f2de7e065969b0f56fda318a94bca1aacdb428
3
+ metadata.gz: 8f7d5e29ddac57a159de2b8b81d8e1f733e6432a
4
+ data.tar.gz: e1439edd589fc90303d0b2f0b3b00c99e168a324
5
5
  SHA512:
6
- metadata.gz: fcb5302fa9589c455bb6c4e0ee34e5e7320e041d08746c2abbb377beb8d4fd7f1a03068046feb3758cfb653b22892a9f5a6681cc55301ab9b4dae3cb8ec222a9
7
- data.tar.gz: ccd5c3dafaab3fb91b0df5da70da7a74aa3b43849b2fddfe28ea65983b86ba86fbff0eeec3af493aae03ced53dc134cfd854e10597b137e5b98b670412653edd
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 restful
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 restful
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 restful
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 restful
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 restful
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 restful
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 restful
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 restful
252
+ # include Restful::Base
253
253
  # respond_to :html
254
254
  #
255
255
  # restful model: :document, strong_params: :document_params,
@@ -3,5 +3,5 @@
3
3
  module Restful
4
4
  ##
5
5
  # Sets the library version
6
- VERSION = '0.0.2'
6
+ VERSION = '0.0.3'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Alberto Chavez