Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Style/NumericLiterals offense #243

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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