mongoid-autoinc 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/autoinc.rb +2 -2
  2. data/lib/autoinc/version.rb +1 -1
  3. metadata +2 -2
data/lib/autoinc.rb CHANGED
@@ -45,8 +45,8 @@ module Mongoid
45
45
  def increment!(field, options)
46
46
  scope_key = options[:scope] ? send(options[:scope]) : nil
47
47
  write_attribute(
48
- field.to_sym,
49
- Mongoid::Autoinc::Incrementor.new(self.class.name, field, scope_key).inc
48
+ field.to_sym, Mongoid::Autoinc::Incrementor.new(
49
+ self.class.model_name, field, scope_key).inc
50
50
  )
51
51
  end
52
52
 
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Autoinc
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-autoinc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-09-20 00:00:00.000000000 Z
14
+ date: 2012-09-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mongoid