On 30 January 2015 at 16:43, PandaR1 <fabio.montars...@gmail.com> wrote: > This very simple script was running in 4.1.6 > > require '.\config\config.rb' > require '.\models\transazioni.rb' > > Transazioni.where(isprocessed: 'N').each do |tr| > puts tr.id_transazione + ' ' + tr.transdate.to_s + ' ' + tr.idmaximo.to_s + > ' ' + tr.codsap > end > > exit > > > database.yml: > > # DATA SOURCE > datasource: > adapter: oracle_enhanced > url: jdbc:oracle:thin:@x.x.x.x:1521:xxxx > username: xxx > password: xxx > > > > config.rb: > > require 'rubygems' > require 'active_record' > require 'yaml' > require 'logger' > require 'C:/jrails4/jruby/lib/ojdbc6.jar' > > @config_db = YAML::load(File.open("config/database.yml")) > $src_db = @config_db["datasource"] > > > Now with 4.2.0 I got this error: > > C:/jrails4_update/jruby/lib/ruby/gems/shared/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:587 > warning: already initialized constant Reference
My guess would be that something is getting loaded twice. I suggest taking out all the requires and putting them back till you get the problem. That may help you to home in on it. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuh8Sf%2BhArNXCTqzfbtZT3OppDJ_7QH3QE3YkvG7PHrOQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.