Skip to content

Commit fe95730

Browse files
committed
Fix Style/NumericLiterals offense
1 parent 49e16ea commit fe95730

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Diff for: .rubocop_todo.yml

-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: lib/chrono_model/adapter.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ class Adapter < ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
3535

3636
# Returns true whether the connection adapter supports our
3737
# implementation of temporal tables. Currently, Chronomodel
38-
# is supported starting with PostgreSQL 9.3.
38+
# is supported starting with PostgreSQL 9.3 (90300 in PostreSQL's
39+
# `PG_VERSION_NUM` format).
3940
#
4041
def chrono_supported?
41-
postgresql_version >= 90300
42+
postgresql_version >= 90300 # rubocop:disable Style/NumericLiterals
4243
end
4344

4445
def chrono_setup!

0 commit comments

Comments
 (0)