lib/appstats/log_collector.rb in appstats-0.22.0 vs lib/appstats/log_collector.rb in appstats-0.22.1

- old
+ new

@@ -2,10 +2,10 @@ require 'net/scp' module Appstats class LogCollector < ActiveRecord::Base set_table_name "appstats_log_collectors" - # establish_connection "appstats_#{Rails.env}" if connection.nil? + establish_connection "appstats_#{Rails.env}" if configurations.keys.include?("appstats_#{Rails.env}") @@downloaded_log_directory = nil attr_accessible :host, :filename, :status, :local_filename has_many :entries, :table_name => 'appstats_entries', :foreign_key => 'appstats_log_collector_id', :order => 'action' \ No newline at end of file