Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replace 'with_exclusive_scope' with 'unscoped'

  • Loading branch information...
commit b23010ec937a5fe4e8f5643b2f36bf8a66013abd 1 parent c1de850
@shayfrendt shayfrendt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/acts_as_revisable/acts/revisable.rb
View
4 lib/acts_as_revisable/acts/revisable.rb
@@ -419,7 +419,7 @@ def with_scope(*args, &block) #:nodoc:
options = (args.grep(Hash).first || {})[:find]
if options && options.delete(:with_revisions)
- with_exclusive_scope do
+ unscoped do
super(*args, &block)
end
else
@@ -437,7 +437,7 @@ def find(*args) #:nodoc:
options = args.grep(Hash).first
if options && options.delete(:with_revisions)
- with_exclusive_scope do
+ unscoped do
super(*args)
end
else
Please sign in to comment.
Something went wrong with that request. Please try again.