This repository has been archived by the owner. It is now read-only.

rapns fails to start on Heroku with ActiveRecord 3.2.5 #43

Closed
tompesman opened this Issue Jun 4, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@tompesman
Contributor

tompesman commented Jun 4, 2012

Due to this commit in ActiveRecord rapns fails to start with ActiveRecord 3.2.4/3.2.5 on Heroku.
rails/rails@8e315b0

lib/rapns/patches.rb:

if ActiveRecord::Base.configurations[Rails.env]['adapter'] == 'postgresql'

It fails as there is no 'configurations' available: lib/rapns/patches.rb:1:in '<top (required)>': undefined method '[]' for nil:NilClass (NoMethodError)

I don't have a pull request right now, but I think you should also check for the ENV['DATABASE_URL'].

@ileitch

This comment has been minimized.

Show comment
Hide comment
@ileitch

ileitch Jun 6, 2012

Owner

Thanks, i'll get to this soon.

Owner

ileitch commented Jun 6, 2012

Thanks, i'll get to this soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.