Skip to content

Commit

Permalink
Remove rails < 5 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Jan 19, 2024
1 parent 119559c commit bf5b90d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/ovirt_metrics/configurator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,7 @@ def initialize
attr_reader :connection_specification_name

def connection_specification_name=(value)
if ActiveRecord::VERSION::MAJOR < 5
OvirtMetrics.warn "WARNING: ovirt_metric's " \
"connection_specification_name option is only available with " \
"Active Record 5 or newer. The main application pool " \
"('primary') will be used by default until you connect to a " \
"separate Ovirt database."
else
@connection_specification_name = value
end
@connection_specification_name = value
end
end
end

0 comments on commit bf5b90d

Please sign in to comment.