bsm-models 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bsm/model/eager_descendants.rb +7 -5
- metadata +8 -8
@@ -11,13 +11,15 @@ module Bsm::Model::EagerDescendants
|
|
11
11
|
private
|
12
12
|
|
13
13
|
def eager_constantize!
|
14
|
-
return if @
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
return if @__eagerly_constantized__
|
15
|
+
|
16
|
+
load_path = $LOAD_PATH.find do |path|
|
17
|
+
File.exist? File.join(path, "#{name.underscore}.rb")
|
18
|
+
end
|
19
|
+
Dir[File.join(load_path, parent_name.underscore, "**", "*.rb")].each do |file|
|
18
20
|
ActiveSupport::Dependencies.depend_on file
|
19
21
|
end
|
20
|
-
@
|
22
|
+
@__eagerly_constantized__ = true
|
21
23
|
end
|
22
24
|
|
23
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bsm-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-11-04 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: abstract
|
16
|
-
requirement: &
|
16
|
+
requirement: &18772060 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *18772060
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activerecord
|
27
|
-
requirement: &
|
27
|
+
requirement: &18768740 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -35,10 +35,10 @@ dependencies:
|
|
35
35
|
version: 3.2.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *18768740
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: railties
|
41
|
-
requirement: &
|
41
|
+
requirement: &18745420 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ! '>='
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: 3.2.0
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
|
-
version_requirements: *
|
52
|
+
version_requirements: *18745420
|
53
53
|
description: ''
|
54
54
|
email: dimitrij@blacksquaremedia.com
|
55
55
|
executables: []
|