mongoid-api-base 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0affe1619b4b5e223eace86716bae5db6ca1c583
4
- data.tar.gz: 59b68d49e947e3e56970d8ba74f3bc44a71fcd09
3
+ metadata.gz: e6e1fe180e92012e58e5e7bcd788d9752703fc97
4
+ data.tar.gz: 3a724057a28acdc4d6c4aef9bdd112b02497e9de
5
5
  SHA512:
6
- metadata.gz: c08eebc0018182de7cb1f185a5c01c63d6d4973bf206e152a133b95c79e05cdc5c2e52c7cbb1c4781ce6d40256e001c62bc78fde1405cac718fefa1196ca1ff8
7
- data.tar.gz: 94445158fe9fbffef382c7f523f0cc70698f8bf9188b6f222e953fd2f44303644365bf6e201c59b1ca70ea31031ab263a1e4be21c953f15240a5d085abb14ee2
6
+ metadata.gz: d96715abaf4cb3b37b3e284ba47a3b16f942cb1400d94e4aa18854fb7edf0b083f00e5ded09c85ff3e82b1d8c532d0c01e4f7d0b3facdc4a075ed56ffdb16c04
7
+ data.tar.gz: 0da62faf959b0b7523a4c8e3dab5479ef4a5aa0cefcf3cff5d4c9faaf0dafaf609926829a9b37524d0dccb29994cfc14be11ac232e3022258aa0c8796438c384
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid-api-base (0.1.2)
4
+ mongoid-api-base (0.1.3)
5
5
  kaminari
6
6
  mongoid (~> 5.0)
7
7
  rails (~> 4.2.5.1)
@@ -84,7 +84,7 @@ module MongoidApiBase
84
84
  def get_object_version(object)
85
85
  version = params[:version]
86
86
  if version && object.respond_to?(:undo, true)
87
- object.undo(nil, from: version.to_i + 1, to: resource.version)
87
+ object.undo(nil, from: version.to_i + 1, to: object.version)
88
88
  object.version = version
89
89
  end
90
90
  object
@@ -1,4 +1,4 @@
1
1
  module MongoidApiBase
2
2
  RAILS_VERSION = "~> 4.2.5.1"
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-api-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails