Closed GoogleCodeExporter closed 9 years ago
Due to limitations on pagination, authorized_for_read? should be used only for
show
and actions like that. You can't get the right number of records per page, so
the
result would be strange, because you can show 10 rows in a page and 13 rows in
other
page. column_authorized_for_read? is used in list view, but if you want to limit
what records to show you must use conditions_for_collection in the controller.
Original comment by sergio.c...@gmail.com
on 16 Nov 2009 at 8:36
> column_authorized_for_read? is used in list view
This is a much cleaner solution. I have upgraded to current master to take
advantage
of this as the rails-2.2 branch does not have this ability. I have logged a
suggested
enhancement as issue 717: authorized_for? used in list view use empty_field_text
instead of blank if authorisation fails
Original comment by khals...@gmail.com
on 21 Nov 2009 at 6:28
Original issue reported on code.google.com by
khals...@gmail.com
on 14 Nov 2009 at 2:59