To edit pages or tickets please login with username/password: aaf/aaf

Ticket #214 (new defect)

Opened 2 months ago

rebuild_index fails with NoMethodError when no explicit :fields list is given in config/aaf.rb

Reported by: admin Assigned to: jk
Priority: major Milestone:
Component: 0plugin Version:
Keywords: Cc:

Description

  ActsAsFerret::define_index( 'assets', :models => { Asset => { :if => Proc.new{ |asset|asset.parent_id.nil? } } } )
  ActsAsFerret::rebuild_index 'assets'

fails with

NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.each_pair
        from .../acts_as_ferret/lib/instance_methods.rb:130:in `to_doc'

To edit pages or tickets please login with username/password: aaf/aaf