horza 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/horza/adapters/class_methods.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 968c9e1c2da3e1abcab14ed8566f37341c9da3c7
|
|
4
|
+
data.tar.gz: b19817b2d42583b12c3010f56f6d609a67685fc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1043958704614f76a4c3dcd081e958ee45d2ef7f1c07330b9a52ae28f553f836e4526d10614e17ce11a43e47b5dd0e7cea97a38f0b31346403a1d8c4e36240a
|
|
7
|
+
data.tar.gz: 1d800a331f400a683a27c3b419a9bd02131397e17f9c1539493d471dad36f9ce4682fbb5925dd8121a598d52cfd5696d1d7a31a7700ee4c0508a72fff5072903
|
|
@@ -22,11 +22,11 @@ module Horza
|
|
|
22
22
|
|
|
23
23
|
def lazy_load_model(entity)
|
|
24
24
|
raise Horza::Errors::NoContextForEntity.new unless Horza.configuration.development_mode
|
|
25
|
-
|
|
25
|
+
lazy_const = entity.to_s.camelize
|
|
26
26
|
|
|
27
27
|
[Object].concat(Horza.configuration.namespaces).each do |namespace|
|
|
28
28
|
begin
|
|
29
|
-
return namespace.const_get(
|
|
29
|
+
return namespace.const_get(lazy_const) if (namespace.const_get(lazy_const) < Horza.adapter::CONTEXT_NAMESPACE)
|
|
30
30
|
rescue NameError
|
|
31
31
|
next
|
|
32
32
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: horza
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Blake Turner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hashie
|