Sha256: 4426939675361465b8c62924e97d8ba7ac5cfa0ef5dd6a04b3246daf3ead5ecf

Contents?: true

Size: 429 Bytes

Versions: 4

Compression:

Stored size: 429 Bytes

Contents

module Kangaroo
  class Railtie < Rails::Railtie
    initializer 'kangaroo.initialize' do
      begin
        config_file = File.join(Rails.root, %w(config kangaroo.yml))
        configuration = Kangaroo::Util::Configuration.new config_file, Rails.logger
        configuration.load_models
      rescue Errno::ECONNREFUSED => e
        Rails.logger.error "Could not connect to OpenERP XML-RPC Service."
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kangaroo-0.0.3 lib/kangaroo/railtie.rb
kangaroo-0.0.2 lib/kangaroo/railtie.rb
kangaroo-0.0.1.pre2 lib/kangaroo/railtie.rb
kangaroo-0.0.1.pre lib/kangaroo/railtie.rb