rao-resources_controller 0.0.17.pre → 0.0.18.pre

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: 60cfa22d20ed3079329655ade131328f356fc7071d18a12030c5462bb974bebf
4
- data.tar.gz: 9b1d4106202e09d931f2b0444d6008023e5d3402ee9e0e6368186fd63d6c8a4b
3
+ metadata.gz: 6a303bbda86887313d92e82089690c8432eade790fc816ef88c843ee32b09290
4
+ data.tar.gz: '069e105b654bbab5f54a95e2126f4f3fb332be5ac3d3d30936077d9db5b82da1'
5
5
  SHA512:
6
- metadata.gz: 388bbb1fd90fde9400298175398b2989a820b694895e8fd5d0ce236234b21ea0e28b2bc682e13eed35025ca93a05a4363a70f4875b6f9e4fb76dae7713330dad
7
- data.tar.gz: c6f2cca8975434f3f36a05e28ad58eac4fa86b02673d667b402fbbed09f2fffe3416d9b823bbbff1c533d1a130d9283ba37b3bb2fcfe8c5d8dc84223d77aa44f
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.17.pre
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-01 00:00:00.000000000 Z
11
+ date: 2019-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails