Displaying 1 result from an estimated 1 matches for "timesheet_entries".
Did you mean:
time_sheet_entries
2010 Mar 01
0
undefined method for Polymorphic association using Searchlogic
...t 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("Task").size
=> 39649
>> TimesheetEntry.timesheet_enterable_id_equals("...