lib/usable/mod_extender.rb in usable-3.9.4 vs lib/usable/mod_extender.rb in usable-3.10.0
- old
+ new
@@ -7,10 +7,10 @@
@mod = mod
@options = options
@options[:method] ||= :include
@copy = mod
@name = mod.name
- @unwanted = find_unwanted_methods(options[:only])
+ @unwanted = (options[:except] && Array(options[:except])) || find_unwanted_methods(options[:only])
if @unwanted.any?
@copy = @copy.dup
end
end