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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 416cb3f614b0f2baf7204758922fb69e3eb6c884
4
- data.tar.gz: b36fdae7bd616a5f74f9dbfe5bed3ab99ff6125d
3
+ metadata.gz: 861ce4bffdeb867fbe39992c13e21f82ab1ca2de
4
+ data.tar.gz: 209728c74032a3eb45e6b39be79bd9c96c5a9f00
5
5
  SHA512:
6
- metadata.gz: cc46fd59ecb491a62950da8767b278eb22efcd0803885249cf1392600c5a0b48826197e69a81863df6871e345b3c136c8a329d911d93a16897b5b6d923ce52ac
7
- data.tar.gz: 44ce96df180886828ca39a009c7f9df300ed16f7dc3419263850b91875806fdbe9a46778f1d0618af9f0207423de856addd3ba155fb04b75552047a74c9fe28a
6
+ metadata.gz: e92da814c3af4b730ecbf73ceb7a4e5ebcf3c0e995216260da98a1b3d6891c9ce1389df1d570ca266d10e6735e30f4f5bb55973a1f3020159b71a79cb8e58bb7
7
+ data.tar.gz: 6d677452b48a23175e120833dd3ad19ea8db99371f6bb676795f828cb5e66b387c11e1aec4cc31ddea9132c3b09c189777c25e83096e680c32874aa0f5fef657
@@ -21,8 +21,10 @@ module PresenterObject
21
21
  end
22
22
 
23
23
  def self.load_presenter!(name)
24
- namespaces.detect do |space|
25
- space.const_get "#{name}#{SUFFIX}" rescue nil
26
- end || DEFAULT_OBJECT
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
@@ -1,3 +1,3 @@
1
1
  module PresenterObject
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presenter_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Salazar