Permalink
Browse files

Rescue in Record#destroyable? for absence of :delete scope

  • Loading branch information...
1 parent 28dccce commit 03376778d0f2417425c15496e98fc7ea5c9feea1 @denyago committed Nov 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/heimdallr/proxy/record.rb
@@ -314,6 +314,8 @@ def modifiable?
def destroyable?
scope = @restrictions.request_scope(:delete)
record_in_scope? scope
+ rescue
+ false
end
# Checks, if restrictions allow to do an +action+.

0 comments on commit 0337677

Please sign in to comment.