lib/admin_assistant.rb in admin_assistant-2.2.3 vs lib/admin_assistant.rb in admin_assistant-2.2.4

- old
+ new

@@ -216,10 +216,10 @@ self.send(:define_method, action) do self.class.admin_assistant.send(action, self) end end AdminAssistant.routes << Route.new(self.admin_assistant) - rescue ActiveRecord::StatementInvalid + rescue ActiveRecord::StatementInvalid, Mysql::Error Rails.logger.info "Skipping admin_assistant_for for #{self.name} because the table doesn't exist in the DB. Hopefully that's because you're deploying with a migration." end end end