#721 ✓resolved
Matt Jones

LifecycleState type breaks table-plus sorting

Reported by Matt Jones | May 6th, 2010 @ 07:27 PM | in Hobo 1.1

The code that's detecting included objects in the automatic order_by scope is being fooled by the table_name accessor added to LifecycleState as part of the fix for #551. The result is that you can't sort by the field and instead get an error since LifecycleState doesn't respond to name_attribute.

Would changing the check (on line 258 of automatic_scopes.rb) to respond_to?(:name_attribute) be a sensible fix?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Referenced by

Pages