Skip to content

Commit

Permalink
Rescue in Record#destroyable? for absence of :delete scope
Browse files Browse the repository at this point in the history
  • Loading branch information
denyago committed Nov 9, 2012
1 parent 28dccce commit 0337677
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/heimdallr/proxy/record.rb
Expand Up @@ -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+.
Expand Down

0 comments on commit 0337677

Please sign in to comment.