mongoid-included 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ module Mongoid
33
33
 
34
34
  def model_name
35
35
  if self.parent != Object
36
- ActiveModel::Name.new(self, self.parent)
36
+ @_model_name ||= ActiveModel::Name.new(self, self.parent)
37
37
  else
38
38
  super
39
39
  end
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Included
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alexandre Angelim