lib/td/logger/agent/rails.rb in td-logger-0.3.21 vs lib/td/logger/agent/rails.rb in td-logger-0.3.22

- old
+ new

@@ -38,10 +38,10 @@ #Agent::Rails::ModelExtension.init true end - if ::Rails.respond_to?(:version) && ::Rails.version =~ /^3/ + if ::Rails.respond_to?(:version) && ::Rails.version.to_i >= 3 class Railtie < ::Rails::Railtie initializer "treasure_data_logger.start_plugin" do |app| TreasureData::Logger::Agent::Rails.init(app.config) end end