Skip to content

Commit

Permalink
Minor refactoring of kind_of method
Browse files Browse the repository at this point in the history
  • Loading branch information
jcasimir committed Nov 1, 2011
1 parent 42b8e90 commit ffa7901
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/draper/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ def ==(other)
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)
Expand Down

0 comments on commit ffa7901

Please sign in to comment.