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

zsjiang opened this Issue Jan 22, 2013 · 0 comments


None yet

1 participant


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

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

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