Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…veRecord::StatementInvalid
  • Loading branch information...
commit fafb837c7ca8c4e6b08fa79815757fa5edddafb4 1 parent dfb2e5a
@joegoggins joegoggins authored committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/sanction.rb
View
3  lib/sanction.rb
@@ -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!
Please sign in to comment.
Something went wrong with that request. Please try again.