adeia 0.11.6 → 0.11.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/adeia/controller_resource.rb +8 -4
- data/lib/adeia/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1313623c5b03248e41b5fa91117bd4c922149ff2
|
4
|
+
data.tar.gz: 6b1375f185b16ed65198a25c5a9ea31a65cb2786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40203a25fa57e62769274340b0e2dfd6aab508743de711734e37c86f05d5b9d06292eeae5c65c1dd81bf1d930d1ed4abc2627a4a1e207d57a8de9197c633065f
|
7
|
+
data.tar.gz: 162725a53fbc68a2485d7f30d6fcc1511be4caf942cfeb13130f845db55ccc38484d3431896439865cd4416e5d8348ce993628d8e72960fe52987031cb1869af
|
@@ -82,10 +82,14 @@ module Adeia
|
|
82
82
|
private
|
83
83
|
|
84
84
|
def resource_class
|
85
|
-
|
86
|
-
@
|
87
|
-
|
88
|
-
|
85
|
+
if @resource
|
86
|
+
@resource.class
|
87
|
+
else
|
88
|
+
begin
|
89
|
+
@controller_name.classify.constantize
|
90
|
+
rescue NameError
|
91
|
+
@controller_name.classify.demodulize.constantize
|
92
|
+
end
|
89
93
|
end
|
90
94
|
end
|
91
95
|
|
data/lib/adeia/version.rb
CHANGED