search for: build_search_where_claus

Displaying 1 result from an estimated 1 matches for "build_search_where_claus".

2009 Feb 02
9
ActiveRecord Unexplainable SystemStackError - Only in WEBrick
...host, delivered, region_id, package_id'', :include=>:region, :dependent=>:delete_all def self.search(criteria) raise ArgumentError, ''argument must be of type SearchCriteria'' unless criteria.is_a\ ?(SearchCriteria) clause = build_search_where_clause(criteria) find(:all, :include=>[:deliveries], :conditions=>clause) end end class Delivery < ActiveRecord::Base belongs_to :package belongs_to :region end class Region < ActiveRecord::Base has_many :deliveries end Looking at the SQL output, the exception is occurring after...