search for: readable_bi

Displaying 2 results from an estimated 2 matches for "readable_bi".

Did you mean: readable_by
2006 Feb 20
0
Securing the Model
Hello, I have a security schema for all kinds of items in my application (pages, logs, links, ...). Basically it works as follows : readable_by can be either ''a'' (all) ''g'' (group) or ''u'' (owner). If it is group then rgroup_id is set. writable_by can be either ''a'', ''g'' or ''u''. If it is
2007 May 17
4
How to mock helpers in view specs ?
Hi all, I am mocking the following Rails view (inside a partial): <%= render :partial => "forums/forum", :collection => forum_category.forums.readable_by(current_user? ? current_user : nil) %> My spec fails with the following message: 1) ActionView::TemplateError in ''forum_categories/index (anonymous user) should only render forums accessible to anonymous