Skip to content

Conversation

@koic
Copy link
Collaborator

@koic koic commented May 1, 2020

This PR suppresses the following warning: already initialized constant.

% path/to/oracle-enhanced
% bundle exec rake
(snip)
==> Loading config from ENV or use default
==> Running specs with MRI version 2.7.1
==> Effective ActiveRecord version 6.1.0.alpha
/home/vagrant/src/oracle-enhanced/spec/spec_helper.rb:113: warning:
already initialized constant
ActiveRecord::LogSubscriber::IGNORE_PAYLOAD_NAMES
/home/vagrant/.rvm/gems/ruby-2.7.1/bundler/gems/rails-348e142b26b4/activerecord/lib/active_record/log_subscriber.rb:5:
warning: previous definition of IGNORE_PAYLOAD_NAMES was here

This PR suppresses the following `warning: already initialized constant`.

```console
% path/to/oracle-enhanced
% bundle exec rake
(snip)
==> Loading config from ENV or use default
==> Running specs with MRI version 2.7.1
==> Effective ActiveRecord version 6.1.0.alpha
/home/vagrant/src/oracle-enhanced/spec/spec_helper.rb:113: warning:
already initialized constant
ActiveRecord::LogSubscriber::IGNORE_PAYLOAD_NAMES
/home/vagrant/.rvm/gems/ruby-2.7.1/bundler/gems/rails-348e142b26b4/activerecord/lib/active_record/log_subscriber.rb:5:
warning: previous definition of IGNORE_PAYLOAD_NAMES was here
```
@koic koic force-pushed the suppress_warning_already_initialized_constant branch from 030cad7 to ed15755 Compare May 1, 2020 19:18
@koic koic merged commit 125c064 into rsim:master May 2, 2020
@koic koic deleted the suppress_warning_already_initialized_constant branch May 2, 2020 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant