REDACTED!
Okay, it's 100% my error.
Ability#initialize IS getting called.
The source of my woes: I was explicitly passing :user_id => 1001 to
Premise#initialize, which was overriding the :user_id that CanCan was
providing. It was bad luck (or bad judgement) that I chose 1001 as the
id -- this caused it to work on the first test and fail on the second.
The halos of Saint Bates and Saint Chelimsky are still untarnished!
(Now I can go debug why respond_with @premise is getting a "Not
Acceptable" response.)
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment