Skip to content

Commit

Permalink
Merge pull request #243 from ifad/chore/fix-numeric-literals
Browse files Browse the repository at this point in the history
Fix Style/NumericLiterals offense
  • Loading branch information
tagliala authored Oct 19, 2023
2 parents 49e16ea + 6e8dec0 commit cfcc9fd
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 cfcc9fd

Please sign in to comment.