#726 ✓resolved
Matt Jones

can_view? behaves oddly in a repeat context

Reported by Matt Jones | May 21st, 2010 @ 05:26 PM | in Hobo 1.3 (Rails 3)

This code:

  <do repeat="some-association">

&lt;do if=&quot;&amp;can_view?&quot;&gt;
  &lt;view:some-field /&gt;
&lt;/do&gt;



</do>

fails messily - it appears that the top case in can_view? (around line 295 of hobo_helper.rb) is trying to check this_parent (which is the array) and this_field (which is a number) rather than the (somewhat) expected behavior of checking just 'this'. If this is intentional, we should fix the docs.

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

Referenced by

Pages