Permalink
Browse files

Very very very tiny change to warn instead of silently rescueing Acti…

…veRecord::StatementInvalid
  • Loading branch information...
1 parent dfb2e5a commit fafb837c7ca8c4e6b08fa79815757fa5edddafb4 @joegoggins joegoggins committed with Jan 12, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/sanction.rb
View
@@ -13,7 +13,8 @@ def self.configure
begin
yield self
- rescue ActiveRecord::StatementInvalid
+ rescue ActiveRecord::StatementInvalid => e
+ puts "WARNING: Class not defined, got an error #{e.message}"
end
do_injections!

0 comments on commit fafb837

Please sign in to comment.