Skip to content
Browse files

be kind and call super in ModuleExtensions#extended and #included to …

…allow other frameworks hooking into extention mechanism, too.
  • Loading branch information...
1 parent 6d03269 commit fe492ed945288e79c3f544ded66eab11d9bef724 @apotonick apotonick committed Jun 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/virtus/module_extensions.rb
View
2 lib/virtus/module_extensions.rb
@@ -5,11 +5,13 @@ module Virtus
module ModuleExtensions
def extended(object)
+ super
object.extend(Virtus)
define_attributes(object)
end
def included(object)
+ super
object.send(:include, ClassInclusions)
define_attributes(object)
end

0 comments on commit fe492ed

Please sign in to comment.
Something went wrong with that request. Please try again.