Skip to content

Commit

Permalink
Better syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed May 8, 2024
1 parent d82916c commit 5c76a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/application_record.rb
Expand Up @@ -19,6 +19,6 @@ def locking_enabled?
attr_writer :locking_enabled

def stale?
try(:lock_version_changed?) || false
!!try(:lock_version_changed?)
end
end

0 comments on commit 5c76a92

Please sign in to comment.