lib/shirinji-rails/railtie.rb in shirinji-rails-0.0.4 vs lib/shirinji-rails/railtie.rb in shirinji-rails-0.0.5
- old
+ new
@@ -11,14 +11,14 @@
end
def init!
return unless (conf = config_path)
- map = eval File.read(conf)
+ map = Shirinji::Map.load(conf)
resolver = Shirinji::Resolver.new(map)
ActiveSupport::Reloader.to_prepare do
- map = eval File.read(conf)
+ map = Shirinji::Map.load(conf)
resolver.reload(map)
end
config.shirinji.resolver = resolver
end