Displaying 2 results from an estimated 2 matches for "main_identifi".
Did you mean:
main_identifier
2007 Apr 12
0
Does Ferret have problems with #alias_method_chain ?
Hi all,
I have this in my class:
class Party < AR::B
acts_as_ferret :store_class_name => true, :remote => true,
:fields => (self.content_columns.map(&:name) rescue []) +
%w(main_identifier)
class << self
# #count is also defined, omitted for clarity
def find_with_destroyed_scope(*args)
with_destroyed_scope do
find_without_destroyed_scope(*args)
end
end
alias_method_chain :find, :destroyed_scope
def with_destroyed_scope(&block)...
2007 Apr 03
5
Inifinite loop problem with DRb server
...r is started using:
script/runner -e development vendor/plugins/acts_as_ferret/script/ferret_start
# app/models/email.rb:
class Email < ActiveRecord::Base
acts_as_ferret :store_class_name => true, :remote => true,
:fields => (self.content_columns.map(&:name) rescue []) +
%w(main_identifier party_display_name)
end
# app/controllers/search_controller.rb
class SearchController < ApplicationController
def quick
@results = Email.id_multi_search(params[:q], %w(Contact Company))
end
end
# Backtrace
stack level too deep
(druby://127.0.0.1:3000) /usr/local/lib/ruby/1.8/drb/drb...