Permalink
Browse files

Use "descendant" in #included hook methods

  • Loading branch information...
dkubb committed Jul 8, 2011
1 parent c2201f6 commit cb049119f9f510513d31f526c7283b076ab67770
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/virtus.rb
View
@@ -11,15 +11,15 @@ module Virtus
# Extends base class with class and instance methods
#
- # @param [Class] base
+ # @param [Class] descendant
#
# @return [Class]
#
# @api private
- def self.included(base)
- base.extend(DescendantsTracker)
- base.extend(ClassMethods)
- base.send(:include, InstanceMethods)
+ def self.included(descendant)
+ descendant.extend(DescendantsTracker)
+ descendant.extend(ClassMethods)
+ descendant.send(:include, InstanceMethods)
end
end # module Virtus

0 comments on commit cb04911

Please sign in to comment.