1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Minor refactoring of kind_of method

This commit is contained in:
Jeff Casimir 2011-11-01 16:58:12 -04:00
parent 42b8e90001
commit ffa790138c

View file

@ -147,8 +147,7 @@ module Draper
end end
def kind_of?(klass) def kind_of?(klass)
return true if klass == model.class super || model.kind_of?(klass)
super
end end
def respond_to?(method, include_private = false) def respond_to?(method, include_private = false)