gluis wrote:
> i'm confused about some behavior w/ the following from
> acts_as_reportable:
>
> assume 2 models:
> Member :has_many :events, :through => some_other_model
> Event, :has_many :members, :through => some_other_model
>
> assume 2 records in members table
> assume 1st from members has an event, the other doesn't
>
> this
> Member.report_table(:first, :only => [:login], :include => {:events =>
> {:only => [:title]}})
> returns both login and event.title columns
>
> BUT
> this
> Member.report_table(:all, :only => [:login], :include => {:events =>
> {:only => [:title]}})
> returns only the login for Member (b/c the other record in members
> doesn't have an event associated)
Could you please try the latest from GitHub at:
http://github.com/ruport/acts_as_reportable/tree/master
Should work as a gem with GitHub as a source (ruport-acts_as_reportable
I guess), vendor'd in Rails, or just requiring the single lib file directly!
Please let me know if this fixes your issue and doesn't break any other
reports you may have. If so, I will aim to get this released into the
proper gem repository next week as the fix has been lingering around for
quite a while now.
All the best,
Andrew