search for: ferret_destroy

Displaying 4 results from an estimated 4 matches for "ferret_destroy".

2005 Dec 02
43
ANN: acts_as_ferret
...extend FerretMixin::Acts::ARFerret::ClassMethods class_eval do include FerretMixin::Acts::ARFerret::ClassMethods after_create :ferret_create after_update :ferret_update after_destroy :ferret_destroy end end end module ClassMethods include Ferret INDEX_DIR = "#{RAILS_ROOT}/db/index.db" def self.reloadable?; false end # Finds instan...
2005 Dec 02
43
ANN: acts_as_ferret
...extend FerretMixin::Acts::ARFerret::ClassMethods class_eval do include FerretMixin::Acts::ARFerret::ClassMethods after_create :ferret_create after_update :ferret_update after_destroy :ferret_destroy end end end module ClassMethods include Ferret INDEX_DIR = "#{RAILS_ROOT}/db/index.db" def self.reloadable?; false end # Finds instan...
2006 Jun 29
2
Possibly same issue as ''duplicate search results'' topic?
...s_ferret :store_class_name => true, :fields => [''id'', ''code'', ''description''] As a test (and a workaround), in acts_as_ferret.rb module InstanceMethods, I replaced: alias :ferret_update :ferret_create with: def ferret_update self.ferret_destroy self.ferret_create end This ensures unique indexes for me. But I''m guessing it''s redundant and something else is not used or working as intended. Thanks for reading, Neil -- Posted via http://www.ruby-forum.com/.
2006 Jun 17
2
preventing indexing of an acts_as_ferret''d model?
Hi, this is hopefully an easy one, but I''ve gone through the api and searched past forum entries, and am drawing a blank. I have a model that with acts_as_ferret mixed in to it, which is working fine. But I want users to be able to set a ''private'' attribute on the model, and when it''s set to true, create and update methods would skip indexing. So, how can I