Ticket #393 (new defect)

Opened 4 months ago

Acts_as_reportable 1.1 - :only conditions in :include

Reported by: ruport Assigned to:
Milestone: Keywords:
Cc: james.r.croft@googlemail.com

Description

I'm using acts_as_reportable 1.1 and Rails 2.1. I am getting an error whenever I try and create a table with an :only condition specified in the :include. e.g.

people.pages.report_table(:all,

:include => {:people => {:only => :display_name}})

However, this works fine if I remove the :only condition e.g. people.pages.report_table(:all,

:include => :people )