app/support/deny.rb in fullstack-cms-0.3.14 vs app/support/deny.rb in fullstack-cms-0.3.15
- old
+ new
@@ -13,10 +13,10 @@
# !current_user
# end
def deny!(options = {})
negate = false
- expr = options.has_key?(:if)
+ expr = if options.has_key?(:if)
options.delete(:if)
elsif options.has_key?(:unless)
negate = true
options.delete(:unless)
else
\ No newline at end of file