lib/tanker/railtie.rb in tanker-0.5.2 vs lib/tanker/railtie.rb in tanker-0.5.3

- old
+ new

@@ -1,16 +1,23 @@ require 'rails' module Tanker class Railtie < Rails::Railtie config.index_tank_url = '' - + + initializer "tanker.boot" do + get_config + end + config.after_initialize do - Tanker.configuration = {:url => config.index_tank_url } + get_config end rake_tasks do load "tanker/tasks/tanker.rake" end - + + def get_config + Tanker.configuration = {:url => config.index_tank_url } + end end -end +end \ No newline at end of file