rich-acts_as_revisable 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -312,7 +312,12 @@ module WithoutScope
312
312
  # and stores it in an accessor for later saving.
313
313
  def before_revisable_update #:nodoc:
314
314
  return unless should_revise?
315
- return false unless run_callbacks(:before_revise) { |r, o| r == false}
315
+ in_revision!
316
+
317
+ unless run_callbacks(:before_revise) { |r, o| r == false}
318
+ in_revision!(false)
319
+ return false
320
+ end
316
321
 
317
322
  self.revisable_revision = self.to_revision
318
323
  end
@@ -328,6 +333,7 @@ module WithoutScope
328
333
  revisions.reload
329
334
  run_callbacks(:after_revise)
330
335
  end
336
+ in_revision!(false)
331
337
  force_revision!(false)
332
338
  true
333
339
  end
@@ -3,7 +3,7 @@ module WithoutScope #:nodoc:
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 1
5
5
  MINOR = 0
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rich-acts_as_revisable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Cavanaugh