Skip to content

Commit

Permalink
Fix Style/NumericLiterals offense
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Oct 19, 2023
1 parent 49e16ea commit 6e8dec0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions lib/chrono_model/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ class Adapter < ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

# Returns true whether the connection adapter supports our
# implementation of temporal tables. Currently, Chronomodel
# is supported starting with PostgreSQL 9.3.
# is supported starting with PostgreSQL 9.3 (90300 in PostgreSQL's
# `PG_VERSION_NUM` numeric format).
#
def chrono_supported?
postgresql_version >= 90300
postgresql_version >= 90300 # rubocop:disable Style/NumericLiterals
end

def chrono_setup!
Expand Down

0 comments on commit 6e8dec0

Please sign in to comment.