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:
parent
42b8e90001
commit
ffa790138c
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue