From a0f73fe0f7256d67a3d7e1602bcf92f54c2c199d Mon Sep 17 00:00:00 2001 From: Sokolov Yura Date: Mon, 13 Sep 2010 22:09:52 +0800 Subject: [PATCH] fix error --- lib/cancan/can_definition.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cancan/can_definition.rb b/lib/cancan/can_definition.rb index b311390..e9ac0fd 100644 --- a/lib/cancan/can_definition.rb +++ b/lib/cancan/can_definition.rb @@ -72,7 +72,7 @@ module CanCan attributes = {} @conditions.each do |key, value| attributes[key] = value unless [Array, Range, Hash].include? value.class - end if conditions.kind_of? Hash + end if @conditions.kind_of? Hash attributes end