module Rethinker
Constants
- VERSION
Attributes
connection[RW]
Note: we always access the connection explicitly, so that in the future, we can refactor to return a connection depending on the context. Note that a connection is tied to a database in Rethinker
.
Public Class Methods
connect(uri)
click to toggle source
# File lib/rethinker.rb, line 23 def connect(uri) self.connection = Connection.new(uri).tap { |c| c.connect } end
rails3?()
click to toggle source
# File lib/rethinker.rb, line 32 def rails3? return @rails3 unless @rails3.nil? @rails3 = Gem.loaded_specs['activemodel'].version >= Gem::Version.new('3') && Gem.loaded_specs['activemodel'].version < Gem::Version.new('4') end