John Merlino wrote:
[...]
> 
> I'm confused when I do this:
> (rdb:5) p read_authorized?(resource)
> true
> 
> It returns a value of true. But it's undefined?

No.  Based on what you've said, resource is undefined, but 
read_authorized? Is written in such a way that if it is passed an 
undefined argument, it returns true.  Why?  I don't know.  Step through 
with the debugger to see what's going on.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to