searchlogic icon indicating copy to clipboard operation
searchlogic copied to clipboard

Searchlogic provides object based searching, common named scopes, and other useful tools.

Results 101 searchlogic issues
Sort by recently updated
recently updated
newest added

Getting the following error after updating to 2.4.22: NameError: undefined local variable or method `skip_conversionfalse' for #Class:0x9d1afc0 [GEM_ROOT]/gems/searchlogic-2.4.22/lib/searchlogic/named_scopes/association_conditions.rb:77:in `association_condition_options' [GEM_ROOT]/gems/searchlogic-2.4.22/lib/searchlogic/named_scopes/association_conditions.rb:19:in `method_missing' [GEM_ROOT]/gems/searchlogic-2.4.22/lib/searchlogic/named_scopes/association_ordering.rb:27:in `method_missing' [GEM_ROOT]/gems/searchlogic-2.4.22/lib/searchlogic/named_scopes/ordering.rb:30:in `method_missing' [GEM_ROOT]/gems/searchlogic-2.4.22/lib/searchlogic/named_scopes/or_conditions.rb:28:in `method_missing' [GEM_ROOT]/gems/activerecord-2.3.8/lib/active_record/base.rb:1994:in `method_missing_without_paginate' [GEM_ROOT]/gems/will_paginate-2.3.14/lib/will_paginate/finder.rb:170:in...

I've noticed an inconsistency in how searchlogic handles doing a date search (my example uses created_at). Model.created_at_in("2007-8-9".."2010-8-9").another_scope.count => small number Model.another_scope.created_at_in("2007-8-9".."2010-8-9").count => all records in that date range I ran...

I tried using a named scope: In the same method, I have this: ``` Object.named_scope :public_and_my_private, :conditions => "user.id == #{current_user.id} or visibility == #{Shared::PUBLIC}" ``` and ``` @search =...

I got into something like named route missing for searchlogic_path, which turns out the rails_helper is not able to load properly for some reason in the thin environment. I have...

Hi guys, last week i found out a bug in Helpers with new rails 3 or rails_xss html escape. This piece of code: ``` if ascending options[:as] = "▲ #{options[:as]}" css_classes

The database for my application is set up with a many-to-many association between two models: Users and Groups (using a joining class). I'm trying to do a search of the...

I would like to have ordering by multiple columns, where each of them can be ascending and descending. Example: "ORDER BY date ASC, id DESC" What about creating scope like...

@Ben Johnson
from-lighthouse
order
|S| open
order_by

/Users/kristianconsult/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method`merge_joins' for class `Class' (NameError) from /Users/kristianconsult/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.0.0.beta4/lib/active_support/core_ext/module/aliasing.rb:31:in`alias_method_chain' from /Users/kristianconsult/Development/Languages/Ruby/Apps/Web-apps/Rails/Rails-3/Experimental/netzke-rails3-playground/vendor/plugins/searchlogic/lib/searchlogic/active_record/consistency.rb:8:in `block in included' from /Users/kristianconsult/Development/Languages/Ruby/Apps/Web-apps/Rails/Rails-3/Experimental/netzke-rails3-playground/vendor/plugins/searchlogic/lib/searchlogic/active_record/consistency.rb:7:in`class_eval' from /Users/kristianconsult/Development/Languages/Ruby/Apps/Web-apps/Rails/Rails-3/Experimental/netzke-rails3-playground/vendor/plugins/searchlogic/lib/searchlogic/active_record/consistency.rb:7:in `included' from /Users/kristianconsult/Development/Languages/Ruby/Apps/Web-apps/Rails/Rails-3/Experimental/netzke-rails3-playground/vendor/plugins/searchlogic/lib/searchlogic.rb:25:in`include'

if Car has_many Tires Tire has an integer column called size I should be able to do : Car.tires_size_equals([4,5,6]) That fails though. I am able to do a single item...

Basically, this works: ``` >> Article.category_id_equals([1, 2]) => [#, #, #] ``` But this doesn't: ``` >> Article.search(:category_id_equals => [1, 2]).all /usr/lib/ruby/gems/1.8/gems/searchlogic-2.4.10/lib/searchlogic/named_scopes/conditions.rb:115: warning: multiple values for a block parameter (2...