Sha256: 66d1c033fc2c586cb7174961a241a84624aad19920204f4fe3f516f2bea680ca

Contents?: true

Size: 414 Bytes

Versions: 6

Compression:

Stored size: 414 Bytes

Contents

require 'rails'
require 'active_record'
require 'active_record/railtie'
require 'second_base/version'
require 'second_base/railtie'
require 'second_base/on_base'
require 'second_base/forced'

module SecondBase

  extend ActiveSupport::Autoload

  autoload :Base

  def self.config(env = nil)
    config = ActiveRecord::Base.configurations[Railtie.config_key]
    config ? config[env || Rails.env] : nil
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
secondbase-2.1.3 lib/second_base.rb
secondbase-2.1.2 lib/second_base.rb
secondbase-2.1.0 lib/second_base.rb
secondbase-2.0.0 lib/second_base.rb
secondbase-1.0.1 lib/second_base.rb
secondbase-1.0.0 lib/second_base.rb