presenter_object 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/presenter_object/version.rb +1 -1
- data/lib/presenter_object.rb +3 -5
- 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: 416cb3f614b0f2baf7204758922fb69e3eb6c884
|
4
|
+
data.tar.gz: b36fdae7bd616a5f74f9dbfe5bed3ab99ff6125d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc46fd59ecb491a62950da8767b278eb22efcd0803885249cf1392600c5a0b48826197e69a81863df6871e345b3c136c8a329d911d93a16897b5b6d923ce52ac
|
7
|
+
data.tar.gz: 44ce96df180886828ca39a009c7f9df300ed16f7dc3419263850b91875806fdbe9a46778f1d0618af9f0207423de856addd3ba155fb04b75552047a74c9fe28a
|
data/lib/presenter_object.rb
CHANGED
@@ -21,10 +21,8 @@ module PresenterObject
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.load_presenter!(name)
|
24
|
-
namespaces.
|
25
|
-
|
26
|
-
|
27
|
-
end
|
28
|
-
DEFAULT_OBJECT
|
24
|
+
namespaces.detect do |space|
|
25
|
+
space.const_get "#{name}#{SUFFIX}" rescue nil
|
26
|
+
end || DEFAULT_OBJECT
|
29
27
|
end
|
30
28
|
end
|