"has_many through" problems

Hello!

I have got a problem with Globalize since I installed “rbac” plugin.
Error is as follows:

 :select option not allowed on translatable models (roles.*)

 Application trace:

 vendor/plugins/globalize/lib/globalize/localization/db_translate.rb:342:in 

find_every' vendor/rails/activerecord/lib/active_record/base.rb:381:infind’
vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb:54:in
find_target' vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:116:inload_target’
vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:109:in
method_missing' vendor/rails/activerecord/lib/active_record/associations/has_many_through_association.rb:47:inmethod_missing’
#{RAILS_ROOT}/app/models/user.rb:18:in `permission?’

As I understand the problem arises because “rbac” uses constructions
like
has_many :roles, :through => :user_roles
and Globalize doesn’t deal with related find method behaviour.

So my question is: is it difficult to make Globalize work with things
like this?
And by the way, is there a chance to release Globalize from this
:select limitations?

Thank you!

Tim

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs