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

The amplitude initialization syntax is now broken on master #32

Closed
samanthamjohn opened this issue Jul 17, 2018 · 2 comments
Closed

The amplitude initialization syntax is now broken on master #32

samanthamjohn opened this issue Jul 17, 2018 · 2 comments

Comments

@samanthamjohn
Copy link
Collaborator

I believe this commit broke it: 77c1988
The instructions on the README no longer work:

# Configure your Amplitude API key
AmplitudeAPI.api_key = "abcdef123456"

Will throw:

NoMethodError: undefined method `api_key=' for AmplitudeAPI:Class

Before actually releasing 0.10 you should add back in that initialization option or change the doc to reflect the preferred initialization route.

Switching to:

AmplitudeAPI.config.api_key = "abcdef123456"

will properly initialize the gem.

@samanthamjohn
Copy link
Collaborator Author

@kolorahl ^ Do you have a preference?

@tyler-eon
Copy link
Collaborator

Sorry about the late reply.

Yeah, definitely did not have a preference there.

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

No branches or pull requests

2 participants