PRX / apn_on_rails

Apple Push Notifications on Rails
http://rubydoc.info/github/PRX/apn_on_rails/master/frames
MIT License
538 stars 156 forks source link

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

Open zsjiang opened 11 years ago

zsjiang commented 11 years ago

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!