bsm_models 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ module Bsm::Model::EagerDescendants
15
15
  load_path = Rails.root.join("app", "models")
16
16
  matcher = /\A#{Regexp.escape(load_path.to_s)}\/(.*)\.rb\Z/
17
17
  Dir[load_path.join(self.parent_name.underscore, "**", "*.rb")].sort.each do |file|
18
- file.sub(matcher, '\1').camelize.constantize
18
+ require 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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
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-01 00:00:00 Z
18
+ date: 2011-09-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: abstract