Project

General

Profile

Problem adding time_enty to the acitivity view

Added by Emilio González Montaña almost 16 years ago

I'm trying to add the time_entry model into the activity pages, so the time entries will be listed as any other activity...

I've added this code to the time_entry model:

  acts_as_searchable :columns => ['spent_on', "#{table_name}.description"], :include => :project
  acts_as_event :url => Proc.new {|o| {:controller => 'timelog', :action => 'edit', :id => o.id}}
  acts_as_activity_provider :timestamp => 'spent_on',
                            :find_options => {:include => [:project, :author]},
                            :author_key => :author_id

This doesn't work, I've searched diferences between this model and other ones with activity functionality (activity provider), but I don't achieve good results.

Any idea?