lib/mockumentary.rb in mockumentary-0.2.0 vs lib/mockumentary.rb in mockumentary-0.2.1

- old
+ new

@@ -4,10 +4,10 @@ def self.introspect dir = "#{Rails.root}/app/models", namespace = '' Dir.chdir(dir) do Dir['*.rb'].each do |file| require "#{dir}/#{file}" ar_class = (namespace + file.gsub(/\.rb$/, '').classify).constantize - Mockery.generate(ar_class) + Mockery.generate(ar_class) rescue nil end Dir['*'].each do |file| path = "#{dir}/#{file}" if File.directory?(path)