search for: hll_ar_except

Displaying 1 result from an estimated 1 matches for "hll_ar_except".

2009 Mar 11
1
How to dummy a DB adapter?
...entInvalid type AR exceptions. I wish to catch the case where the db adapter in use is not supported by the module. I would like to test this situation and have only a vague idea as to how to proceed. My exception handling method selects the parsing method based on the adapter_name value. def hll_ar_exception(exception) raise exception unless exception.class.to_s == ''ActiveRecord::StatementInvalid'' acan = self.connection.adapter_name case acan when ''MySQL'' hll_parse_mysql when ''PostgreSQL''...