Sha256: f8cc1ecb5106f2cd3ae9f61c967fce11b7fa1a7c1b0d8efbdeae48e9e1c7371a

Contents?: true

Size: 311 Bytes

Versions: 21

Compression:

Stored size: 311 Bytes

Contents

class Simple::SQL::Connection::ActiveRecordConnection < Simple::SQL::Connection
  def initialize
    ::ActiveRecord::Base.connection
  end

  def raw_connection
    ::ActiveRecord::Base.connection.raw_connection
  end

  def transaction(&block)
    ::ActiveRecord::Base.connection.transaction(&block)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
simple-sql-0.5.14 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.13 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.12 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.11 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.10 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.9 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.8 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.7 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.6 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.5 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.4 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.3 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.4.41 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.5.2 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.4.40 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.4.39 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.4.38 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.4.37 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.4.36 lib/simple/sql/connection/active_record_connection.rb
simple-sql-0.4.35 lib/simple/sql/connection/active_record_connection.rb