Rails 4 force us to use ActiveRecord? #127

Closed
guilleiguaran opened this Issue Oct 22, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@guilleiguaran
Member

guilleiguaran commented Oct 22, 2012

Reading in Appraisals file I'm reading this comment:

# TODO Rails 4.0 (once again) forces us to use ActiveRecord :
# Java::OrgJrubyRack::RackInitializationException:
# No such file or directory - [...]/jruby-rack/src/spec/stub/rails40/WEB-INF/config/database.yml

Can you explain me a bit better what's happening?, this maybe something that I can fix in Rails itself before of the release of 4.0

/cc @kares

@ghost ghost assigned kares Oct 22, 2012

@kares

This comment has been minimized.

Show comment Hide comment
@kares

kares Oct 22, 2012

Owner

Hey Guillermo, thanks for looking into this ...
I'm not sure about the details it's a work I did ~ 2 months ago first on AR-JDBC jruby/activerecord-jdbc-adapter#227 It's merged but on a non-master branch (hopefully - there wasn't much activity despite promised).
I was somehow unable to setup a Rails 4.0 without being forced to load (and thus use AR) kares/activerecord-jdbc-adapter@817c84d I did not dig down why, would be really great if you could look into it ...

Owner

kares commented Oct 22, 2012

Hey Guillermo, thanks for looking into this ...
I'm not sure about the details it's a work I did ~ 2 months ago first on AR-JDBC jruby/activerecord-jdbc-adapter#227 It's merged but on a non-master branch (hopefully - there wasn't much activity despite promised).
I was somehow unable to setup a Rails 4.0 without being forced to load (and thus use AR) kares/activerecord-jdbc-adapter@817c84d I did not dig down why, would be really great if you could look into it ...

@kares

This comment has been minimized.

Show comment Hide comment
@kares

kares Oct 22, 2012

Owner

Oh, I'm sorry my comment must sound confusing now, I got a bit confused myself :) ...
Just try appraising up Rails master - you'll most likely end up with a minimum of :

appraise "rails40" do
  gem 'rails', :github => 'rails/rails'
  gem 'journey', :github => 'rails/journey'
  gem 'activerecord-deprecated_finders', :require => nil,
      :github => 'rails/activerecord-deprecated_finders'
end

and then you should end up with a Java::OrgJrubyRack::RackInitializationException as mentioned ...

Owner

kares commented Oct 22, 2012

Oh, I'm sorry my comment must sound confusing now, I got a bit confused myself :) ...
Just try appraising up Rails master - you'll most likely end up with a minimum of :

appraise "rails40" do
  gem 'rails', :github => 'rails/rails'
  gem 'journey', :github => 'rails/journey'
  gem 'activerecord-deprecated_finders', :require => nil,
      :github => 'rails/activerecord-deprecated_finders'
end

and then you should end up with a Java::OrgJrubyRack::RackInitializationException as mentioned ...

@kares kares closed this Nov 16, 2012

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