mongoid-embedded-errors 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/Gemfile.lock CHANGED
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid-embedded-errors (1.0.0)
4
+ mongoid-embedded-errors (1.0.1)
5
5
  mongoid (>= 3.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (3.2.8)
11
- activesupport (= 3.2.8)
10
+ activemodel (3.2.9)
11
+ activesupport (= 3.2.9)
12
12
  builder (~> 3.0.0)
13
- activesupport (3.2.8)
13
+ activesupport (3.2.9)
14
14
  i18n (~> 0.6)
15
15
  multi_json (~> 1.0)
16
16
  builder (3.0.4)
@@ -23,7 +23,7 @@ GEM
23
23
  origin (~> 1.0)
24
24
  tzinfo (~> 0.3.22)
25
25
  moped (1.2.7)
26
- multi_json (1.3.6)
26
+ multi_json (1.3.7)
27
27
  origin (1.0.9)
28
28
  rspec (2.11.0)
29
29
  rspec-core (~> 2.11.0)
@@ -33,7 +33,7 @@ GEM
33
33
  rspec-expectations (2.11.3)
34
34
  diff-lcs (~> 1.1.3)
35
35
  rspec-mocks (2.11.3)
36
- tzinfo (0.3.33)
36
+ tzinfo (0.3.35)
37
37
 
38
38
  PLATFORMS
39
39
  ruby
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module EmbeddedErrors
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -6,7 +6,10 @@ module Mongoid
6
6
  module EmbeddedErrors
7
7
 
8
8
  def self.included(klass)
9
- klass.alias_method_chain(:errors, :embedded_errors)
9
+ # make sure that the alias only happens once:
10
+ unless klass.instance_methods.include?(:errors_without_embedded_errors)
11
+ klass.alias_method_chain(:errors, :embedded_errors)
12
+ end
10
13
  end
11
14
 
12
15
  def errors_with_embedded_errors
File without changes
data/spec/config.yml CHANGED
File without changes
File without changes
data/spec/spec_helper.rb CHANGED
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-embedded-errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-23 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid