bsm_models 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,8 +14,8 @@ module Bsm::Model::EagerDescendants
14
14
  return if @__eagerly_constantized
15
15
  load_path = Rails.root.join("app", "models")
16
16
  matcher = /\A#{Regexp.escape(load_path.to_s)}\/(.*)\.rb\Z/
17
- Dir[load_path.join(self.parent_name.underscore, "**", "*.rb")].sort.each do |file|
18
- require file
17
+ Dir[load_path.join(self.parent_name.underscore, "**", "*.rb")].each do |file|
18
+ ActiveSupport::Dependencies.depend_on file
19
19
  end
20
20
  @__eagerly_constantized = true
21
21
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsm_models
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dimitrij Denissenko
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-12 00:00:00 Z
18
+ date: 2011-09-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: abstract