controller_resources 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: a6adb74a8b9c88d7da3c10ee6cb427d9f421075c
4
- data.tar.gz: 6ff37e39ae45febfc41bb6138384a67d7f5afbbd
3
+ metadata.gz: af14f68c689af332bb9e03f130f30cb8a15f1f89
4
+ data.tar.gz: aa8c73477a70f62835fabcf7cb0967b59f748680
5
5
  SHA512:
6
- metadata.gz: 74b2881705eb65079e7735709571990f173a72a8e4feba6516b81f4c6b04a18c8d7e17bb3a9685423fdd7d24f8f99da89efc0ab9ec051a4887843c83abd0f976
7
- data.tar.gz: 070a4f87cd9b16913bcecb5bba8fb7692c7254d738aa52cb7caf91cd500c4af5b1d7fbc5dba3879321ccb3c0f04920b98040cc5838cfc6cca89898c83bcd3d23
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)
@@ -1,3 +1,3 @@
1
1
  module ControllerResources
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-17 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler