Skip to content

Commit 2e1b953

Browse files
committed
feat!: rename impl_class to with_advisory_impl_class
fixes #83
1 parent e50450e commit 2e1b953

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/with_advisory_lock/concern.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ def with_advisory_lock!(lock_name, options = {}, &block)
1919
end
2020

2121
def with_advisory_lock_result(lock_name, options = {}, &block)
22-
impl = impl_class.new(connection, lock_name, options)
22+
impl = with_advisory_lock_impl_class.new(connection, lock_name, options)
2323
impl.with_advisory_lock_if_needed(&block)
2424
end
2525

2626
def advisory_lock_exists?(lock_name)
27-
impl = impl_class.new(connection, lock_name, 0)
27+
impl = with_advisory_lock_impl_class.new(connection, lock_name, 0)
2828
impl.already_locked? || !impl.yield_with_lock.lock_was_acquired?
2929
end
3030

@@ -35,7 +35,7 @@ def current_advisory_lock
3535

3636
private
3737

38-
def impl_class
38+
def with_advisory_lock_impl_class
3939
adapter = WithAdvisoryLock::DatabaseAdapterSupport.new(connection)
4040
if adapter.postgresql?
4141
WithAdvisoryLock::PostgreSQL

0 commit comments

Comments
 (0)