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
1 changed files with 1 additions and 2 deletions

View File

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