five-two-nw-olivander 0.1.2.5 → 0.1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/olivander/application_helper.rb +2 -2
- data/lib/olivander/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8321bd8a5b34a8550a97d74784c9303f430ec4a4417cd8acadf564f8fcd92687
|
4
|
+
data.tar.gz: 27697dcd2ca0669e2ad81f770b98760dacadb9d1e0bae849ccc047728a89e0c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f824c7aa7a5a8356f2eceeb149e91daef1e7d94eb22bce75d70f3584508d2347b65cf66c383b4512bc26809d1052e09b72cda5e9e6d0224c6fe81c928af3c8
|
7
|
+
data.tar.gz: 1f0b34e2dc130103bcaacf848e17ab6e76bd5f7db84414160201b265623f0fcdd55e391dcf85acebb2ae2946b97240d06edcace6018b08cd6c21e703d34ca3d9
|
@@ -21,8 +21,8 @@ module Olivander
|
|
21
21
|
plural_name = resource.is_a?(Class) ? resource.table_name : resource.class.table_name
|
22
22
|
routed_resource = route_builder.resources[plural_name.to_sym]
|
23
23
|
actions = resource.is_a?(Class) ?
|
24
|
-
(routed_resource.unpersisted_crud_actions | routed_resource.collection_actions) :
|
25
|
-
(resource.persisted? ? (routed_resource.persisted_crud_actions | routed_resource.member_actions): [])
|
24
|
+
(routed_resource.unpersisted_crud_actions | routed_resource.collection_actions.select{ |x| !x.crud_action }) :
|
25
|
+
(resource.persisted? ? (routed_resource.persisted_crud_actions | routed_resource.member_actions.select{ |x| !x.crud_action }): [])
|
26
26
|
actions.reject{ |a| a.sym == for_action }
|
27
27
|
end
|
28
28
|
|
data/lib/olivander/version.rb
CHANGED