Skip to content

[Bug]: missing rest_api_key Configuration accessor #63

@alexrecital

Description

@alexrecital

What happened?

Hi there, bumping the gem version from 2.2.1 to 5.3.0 it looks like there is an accessor issue for the configuration:

Loading development environment (Rails 8.1.3)
recital-backend(dev):001> require "onesignal"
recital-backend(dev):002>   OneSignal.configure { |c| c.rest_api_key = "key" }
recital-backend(dev):003>   # => NoMethodError: undefined method 'rest_api_key=' for an instance of OneSignal::Configuration
(recital-backend):2:in 'block in <main>': undefined method 'rest_api_key=' for an instance of OneSignal::Configuration (NoMethodError)
	from (recital-backend):2:in '<main>'

Steps to reproduce?

1. Using rails 8.1.3, add the onesignal (5.3.0) gem
2. Start the rails console
3. Attempt to configure the `rest_api_key` per the current doc guidelines

What did you expect to happen?

A successful initialization

Relevant log output

Loading development environment (Rails 8.1.3)
recital-backend(dev):001> require "onesignal"
recital-backend(dev):002>   OneSignal.configure { |c| c.rest_api_key = "key" }
recital-backend(dev):003>   # => NoMethodError: undefined method 'rest_api_key=' for an instance of OneSignal::Configuration
(recital-backend):2:in 'block in <main>': undefined method 'rest_api_key=' for an instance of OneSignal::Configuration (NoMethodError)
	from (recital-backend):2:in '<main>'

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions