fix error

This commit is contained in:
Sokolov Yura 2010-09-13 22:09:52 +08:00 committed by Ryan Bates
parent e2c341b8d3
commit a0f73fe0f7

View File

@ -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