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

Non prefix class for payment #1

Open
mcdave029 opened this issue Apr 19, 2017 · 1 comment
Open

Non prefix class for payment #1

mcdave029 opened this issue Apr 19, 2017 · 1 comment

Comments

@mcdave029
Copy link

Got errors superclass mismatch for class Payment on startup of sidekiq. i think its better to have base prefix on your class?

@more-ron
Copy link

The best practice is to namespace your gem's classes with the name of the gem. That would make your class names similar to below:

GlobeConnect::AMAX
GlobeConnect::Authentication
GlobeConnect::Base
GlobeConnect::LocationQuery
GlobeConnect::Payment
GlobeConnect::SMS
GlobeConnect::Subscriber
GlobeConnect::USSD
GlobeConnect::Voice 

That will prevent conflict with the application objects that is using the gem.

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