Displaying 1 result from an estimated 1 matches for "timesheet_enterable".
2010 Mar 01
0
undefined method for Polymorphic association using Searchlogic
...ebug this
issue.
My project consists of several gems, and is using Rails v2.3.4 and the
latest searchlogic repository.
Thanks in advance.
Polymorphic model association
====================================================================
class TimesheetEntry < ActiveRecord::Base
belongs_to :timesheet_enterable, :polymorphic => true
class Task < ActiveRecord::Base
has_many :timesheet_entries, :as => :timesheet_enterable
attr_accessible :project_id
Console results
====================================================================
>> TimesheetEntry.timesheet_enterable_type_equals(&qu...