[Rails] Re: has many through not working in ruby-enterprise

2009-03-24 Thread mirec
now this is one of the weirdest action which has: logger.info curent_user.user_groups.inspect in itself runs properly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gro

[Rails] Re: has many through not working in ruby-enterprise

2009-03-24 Thread mirec
now i found in console, that it works in development mode, also running from mongrel is fine >> u=User.find(8) => #> u.user_groups => [# wrote: > forgot to mention > > as i am moving app to new server where i am testing it with REE, i am > getting these errors: > > happens on this line on User mo

[Rails] Re: has many through not working in ruby-enterprise

2009-03-24 Thread mirec
forgot to mention as i am moving app to new server where i am testing it with REE, i am getting these errors: happens on this line on User model: self.user_groups.include?(UserGroup.find(gr)) --~--~-~--~~~---~--~~ You received this message because you are subscr

[Rails] has many through not working in ruby-enterprise

2009-03-23 Thread mirec
hi, I have simple has many through association which is working without problem on ruby 1.8.6 and rails 2.0.2, but on ruby-enterprise with ruby 2.0.2 or 2.3.2 it just does not see "through" part of association. class User < ActiveRecord::Base has_many :userships has_many :user_groups, :throug