Displaying 1 result from an estimated 1 matches for "timesheet_enterable_type_equ".
2010 Mar 01
0
undefined method for Polymorphic association using Searchlogic
...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("100").size
=> 9
>> Task.project_id_equals(217).size
=> 16
>> TimesheetEntry.timesheet_enterable_task_type_project_id_equals(217).entry_type_equals("project")
NoMethodE...