lib/core/facets/class/descendents.rb in facets-2.4.3 vs lib/core/facets/class/descendents.rb in facets-2.4.4
- old
+ new
@@ -18,11 +18,19 @@
end
end
return subclass
end
- # Obvious alias for descendents.
+ unless defined?(::ActiveSupport)
- alias_method :subclasses, :descendents
+ # Obvious alias for descendents.
+ #
+ # NOTE: ActiveSupport returns string names rather
+ # then actual classes, so this is excluded
+ # if ActiveSupport has already been loaded.
+ #
+ alias_method :subclasses, :descendents
+
+ end
end