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

applications based on different Rails.env couldn't be recognised #57

Open
zsjiang opened this issue Jan 22, 2013 · 0 comments
Open

applications based on different Rails.env couldn't be recognised #57

zsjiang opened this issue Jan 22, 2013 · 0 comments

Comments

@zsjiang
Copy link

zsjiang commented Jan 22, 2013

code segment in lib/apn_on_rails/app/models/apn/app.rb
def cert
   (Rails.env == 'production' ? apn_prod_cert : apn_dev_cert)
 end

could it be changed to
def cert
   (Rails.env=='development' ? apn_dev_cert : apn_prod_cert)
 end

our projects are based on different Rails.env, and I need to use both apn_notification and apn_group_notification, so I couldn't use configatron(it doesn't support group notification)

please help me, THANKS!

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

1 participant