lib/model_discovery/discovery.rb in model_discovery-0.3.4 vs lib/model_discovery/discovery.rb in model_discovery-0.3.5

- old
+ new

@@ -42,9 +42,13 @@ end def self.discover(path) Dir["#{path}/app/models/**/*.rb"].each do |model_file| puts "File matched: #{model_file}" - load model_file + begin + load model_file + rescue ActiveSupport::Concern::MultipleIncludedBlocks => e + puts "[Ignored]: ActiveSupport::Concern::MultipleIncludedBlocks on #{model_file}" + end end end end