controller_resources 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/lib/controller_resources/extension.rb +1 -1
- data/lib/controller_resources/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af14f68c689af332bb9e03f130f30cb8a15f1f89
|
|
4
|
+
data.tar.gz: aa8c73477a70f62835fabcf7cb0967b59f748680
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66335a6b25767c4cf0a607d14a9743bf47620a5b5b8534de49cfea8c7952fb770e74b9117684749c95fbc0846e583022bcea972c500dadd7c7ff05c70379e78a
|
|
7
|
+
data.tar.gz: bafd82a088a21bc004dc472eac654afed05c3f24c63c78fa3429dce064070db6f2cf804c69f5bc29942ad55ca1f7c9016bddbf0b65a48277fc0c0d3563d76eca
|
|
@@ -26,6 +26,7 @@ module ControllerResources
|
|
|
26
26
|
class_attribute :_edit_params
|
|
27
27
|
class_attribute :_singleton_resource
|
|
28
28
|
class_attribute :_collection_resource
|
|
29
|
+
class_attribute :_finder_method
|
|
29
30
|
|
|
30
31
|
# Use the StrongParameters strategy in DecentExposure
|
|
31
32
|
decent_configuration do
|
|
@@ -47,7 +48,6 @@ module ControllerResources
|
|
|
47
48
|
self._collection_resource = name.to_s.pluralize.to_sym
|
|
48
49
|
|
|
49
50
|
class_eval <<-RUBY
|
|
50
|
-
respond_to :html
|
|
51
51
|
expose :#{model}, except: %w(index)
|
|
52
52
|
expose :#{collection}, only: %w(index) do
|
|
53
53
|
#{model_class}.where(search_params)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: controller_resources
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Scott
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|