lib/micronaut/behaviour.rb in spicycode-micronaut-0.1.7.4 vs lib/micronaut/behaviour.rb in spicycode-micronaut-0.1.8.0

- old
+ new

@@ -90,14 +90,16 @@ @metadata[:behaviour][:line_number] = @metadata[:behaviour][:caller].split(":")[1].to_i @metadata.update(extra_metadata) Micronaut.configuration.find_modules(self).each do |include_or_extend, mod, opts| - if include_or_extend == :extend + if include_or_extend == :extend + Micronaut.configuration.trace { "Extending module #{mod} on #{self}" } send(:extend, mod) unless extended_modules.include?(mod) - else - send(:include, mod) unless included_modules.include?(mod) - end + else + Micronaut.configuration.trace { "Including module #{mod} on #{self}" } + send(:include, mod) unless included_modules.include?(mod) + end end end def self.metadata @metadata \ No newline at end of file