Module: Niceql::ErrorExt
- Defined in:
- lib/niceql.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
220 221 222 223 224 225 226 |
# File 'lib/niceql.rb', line 220 def to_s if Niceql.config.prettify_pg_errors && ActiveRecord::Base.configurations[Rails.env]['adapter'] == 'postgresql' Prettifier.prettify_err(super) else super end end |