presenter_object 0.2.7 → 0.2.8
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.rb +5 -3
- data/lib/presenter_object/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: 861ce4bffdeb867fbe39992c13e21f82ab1ca2de
|
4
|
+
data.tar.gz: 209728c74032a3eb45e6b39be79bd9c96c5a9f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e92da814c3af4b730ecbf73ceb7a4e5ebcf3c0e995216260da98a1b3d6891c9ce1389df1d570ca266d10e6735e30f4f5bb55973a1f3020159b71a79cb8e58bb7
|
7
|
+
data.tar.gz: 6d677452b48a23175e120833dd3ad19ea8db99371f6bb676795f828cb5e66b387c11e1aec4cc31ddea9132c3b09c189777c25e83096e680c32874aa0f5fef657
|
data/lib/presenter_object.rb
CHANGED
@@ -21,8 +21,10 @@ module PresenterObject
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.load_presenter!(name)
|
24
|
-
namespaces.
|
25
|
-
space.const_get "#{name}#{SUFFIX}" rescue nil
|
26
|
-
|
24
|
+
namespaces.each do |space|
|
25
|
+
presenter_class = space.const_get "#{name}#{SUFFIX}" rescue nil
|
26
|
+
return presenter_class if presenter_class
|
27
|
+
end
|
28
|
+
DEFAULT_OBJECT
|
27
29
|
end
|
28
30
|
end
|