Andreas Schwarz wrote: > Hi, > > I have a few methods that check permissions, e.g. > > unless user.can_view?(object) > puts "go away" > end > > What I want do do now is add the possibility to give the caller more > information why the user doesn't have permission. I want to make it > backwards compatible, so returning [false, NotInGroupError(:group => > 'xyz')] is not an option. Maybe turn it into a block? user.cannot_view?(object) do |msg| puts msg end Daniel