Sha256: de83425beca177697a0e3d8a054a615475d1afeebcf77b56990bf4d27a470fce

Contents?: true

Size: 324 Bytes

Versions: 10

Compression:

Stored size: 324 Bytes

Contents

if defined?(::Rails)
  module Tako
    class Railtie < Rails::Railtie
      rake_tasks do
        load "tako/railties/databases.rake"
      end

      initializer "tako.initialize_database" do
        ActiveSupport.on_load(:active_record) do
          Tako.load_connections_from_yaml
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tako-0.6.0 lib/tako/railtie.rb
tako-0.5.0 lib/tako/railtie.rb
tako-0.4.1 lib/tako/railtie.rb
tako-0.4.0 lib/tako/railtie.rb
tako-0.3.2 lib/tako/railtie.rb
tako-0.3.1 lib/tako/railtie.rb
tako-0.3.0 lib/tako/railtie.rb
tako-0.2.2 lib/tako/railtie.rb
tako-0.2.1 lib/tako/railtie.rb
tako-0.2.0 lib/tako/railtie.rb