Sha256: bdcc7085617b51986e6f89c90fdae1c1c37a7542b6b9ce11084e7f18eecdec33
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
require 'active_support/deprecation' require 'fresh_connection/connection_manager' module FreshConnection class << self attr_writer :connection_manager def connection_manager @connection_manager || ConnectionManager end def env=(e) ActiveSupport::Deprecation.warn("FreshConnection.env= has been deprecated.", caller) @env = e end def env ActiveSupport::Deprecation.warn("FreshConnection.env has been deprecated.", caller) @env || defined?(Rails) && Rails.env end def rails_3? ActiveRecord::VERSION::MAJOR == 3 end def rails_4? ActiveRecord::VERSION::MAJOR == 4 end end end require 'fresh_connection/extend' require "fresh_connection/railtie" if defined?(Rails)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fresh_connection-0.4.0 | lib/fresh_connection.rb |