deep_unrest 0.1.34 → 0.1.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deep_unrest.rb +1 -1
- data/lib/deep_unrest/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: 5095cf1fc9c37e899a5dd31faf7c91f4a32abca7fd03eefccb7564d515df60d4
|
4
|
+
data.tar.gz: 9a1e1acb9f55ba94e5c706c44cce09e0ecd25dcca2763d9761954eca09e2f603
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a070c77b4b55d24535fc0047f30ca8f8663a232eb02dc7e226ea10458fbfb3ada8a002ad261118286f1b403de71b790b8b9cfec95334eae0beb012870dd4210e
|
7
|
+
data.tar.gz: e3af192ce56ed378e9ce197f104065079e21fd5a7ea3ae097d2b2d2298893f6360636d7db850e48c5ee78d66ec7fe7cd0d2585c100e3cad2d9ed69b4ad7d02c3
|
data/lib/deep_unrest.rb
CHANGED
@@ -127,7 +127,7 @@ module DeepUnrest
|
|
127
127
|
def self.get_scope(scope_type, memo, type, id_str = nil)
|
128
128
|
case scope_type
|
129
129
|
when :show, :update, :destroy
|
130
|
-
id = /^\.(?<id
|
130
|
+
id = /^\.(?<id>[\w-]+)$/.match(id_str)[:id]
|
131
131
|
{ base: to_class(type), method: :find, arguments: [id] }
|
132
132
|
when :update_all, :index
|
133
133
|
if memo.empty?
|
data/lib/deep_unrest/version.rb
CHANGED