rao-resources_controller 0.0.17.pre → 0.0.18.pre
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a303bbda86887313d92e82089690c8432eade790fc816ef88c843ee32b09290
|
4
|
+
data.tar.gz: '069e105b654bbab5f54a95e2126f4f3fb332be5ac3d3d30936077d9db5b82da1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44ecc461672df99cc0160ce95163cbda023b49bef2f91a3694c2593fa89142e78de4312a9d719e5a4c52ae12768c3b481846d879933580ae327447f16e100f13
|
7
|
+
data.tar.gz: 996bc41a41a77d49cba6fc6f0e5c780b177bd11c651522bd89fcf45cf7458e35d7cf7fec081787cd59ce901fdb3c6b6a1b8ad58d09e5a02fad5571b53d0b2804
|
@@ -1,4 +1,18 @@
|
|
1
1
|
module Rao
|
2
|
+
# Usage:
|
3
|
+
#
|
4
|
+
# # app/controllers/posts_controller.rb
|
5
|
+
# class PostsController < ApplicationController
|
6
|
+
# include Rao::ResourcesController::ActsAsListConcern
|
7
|
+
# end
|
8
|
+
#
|
9
|
+
# # config/routes.rb
|
10
|
+
# Rails.application.routes.draw do
|
11
|
+
# resources :posts do
|
12
|
+
# post :reposition, on: :member
|
13
|
+
# end
|
14
|
+
# end
|
15
|
+
#
|
2
16
|
module ResourcesController::ActsAsListConcern
|
3
17
|
extend ActiveSupport::Concern
|
4
18
|
|
@@ -1,4 +1,18 @@
|
|
1
1
|
module Rao
|
2
|
+
# Usage:
|
3
|
+
#
|
4
|
+
# # app/controllers/posts_controller.rb
|
5
|
+
# class PostsController < ApplicationController
|
6
|
+
# include Rao::ResourcesController::ActsAsPublishedConcern
|
7
|
+
# end
|
8
|
+
#
|
9
|
+
# # config/routes.rb
|
10
|
+
# Rails.application.routes.draw do
|
11
|
+
# resources :posts do
|
12
|
+
# post :toggle_published, on: :member
|
13
|
+
# end
|
14
|
+
# end
|
15
|
+
#
|
2
16
|
module ResourcesController::ActsAsPublishedConcern
|
3
17
|
extend ActiveSupport::Concern
|
4
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rao-resources_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|