Sha256: c528c01d6837473fcccff263a17f229294eb5665890df32836e587f4e1e6431d
Contents?: true
Size: 796 Bytes
Versions: 28
Compression:
Stored size: 796 Bytes
Contents
module ActiveRecord # :nodoc: # Represents exceptions that have propagated up through the JDBC API. class JDBCError < ActiveRecordError # The vendor code or error number that came from the database attr_accessor :errno # The full Java SQLException object that was raised attr_accessor :sql_exception end module ConnectionAdapters # :nodoc: # Allows properly re-wrapping/re-defining methods that may already # be alias_method_chain'd. module ShadowCoreMethods def alias_chained_method(meth, feature, target) if instance_methods.include?("#{meth}_without_#{feature}") alias_method "#{meth}_without_#{feature}".to_sym, target else alias_method meth, target if meth != target end end end end end
Version data entries
28 entries across 28 versions & 8 rubygems