Ruby 1.9 and Searchlogic problem

Hello,

After updating our Rails app to ruby 1.9 there are some problems with
searchlogic, here you can find the error :

Error : wrong number of arguments (1 for 0)

Full trace ( passenger ) :

/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:92:in
call' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:92:inblock in named_scope’
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:97:in
call' /usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/named_scope.rb:97:inblock (2 levels) in named_scope’
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/association_conditions.rb:47:in
association_condition_options' /usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/association_conditions.rb:42:increate_association_condition’
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/association_conditions.rb:16:in
method_missing' /usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/association_ordering.rb:27:inmethod_missing’
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/ordering.rb:30:in
method_missing' /usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/named_scopes/or_conditions.rb:28:inmethod_missing’
/usr/local/lib/ruby/gems/1.9.1/gems/activerecord-2.3.5/lib/active_record/base.rb:1959:in
method_missing' /usr/local/lib/ruby/gems/1.9.1/gems/will_paginate-2.3.12/lib/will_paginate/finder.rb:170:inmethod_missing_with_paginate’
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:151:in
cast_type' /usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:88:inmethod_missing’
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:67:in
block in conditions=' /usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:64:ineach’
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:64:in
conditions=' /usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:50:ininitialize’
/usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:25:in
new' /usr/local/lib/ruby/gems/1.9.1/gems/searchlogic-2.3.11/lib/searchlogic/search.rb:25:insearchlogic’
/home/dries/Projects/cloud/app/controllers/products_controller.rb:62:in
`get_menu_items’

Line 62 in product controller:

product_type_search = ProductType.searchlogic(:products_active => true,
:products_on_sale => true, :products_available_for_gallery => true)

Somebody who knows why this problem occurs? Therefore it was working
great with ruby 1.8

Our version of rails is 2.3.5

Greetz,
Dries

Somebody who can help me?

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