lib/active_groonga/railties/configurable.rb in activegroonga-1.0.5 vs lib/active_groonga/railties/configurable.rb in activegroonga-1.0.6
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2010 Kouhei Sutou <kou@clear-code.com>
+# Copyright (C) 2010-2011 Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1 as published by the Free Software Foundation.
#
@@ -17,10 +17,10 @@
module ActiveGroonga
module Railties
module Configurable
def groonga_configurations
- groonga_yml = paths.config.groonga.first
+ groonga_yml = paths["config/groonga"].first
unless File.exist?(groonga_yml)
groonga_yml_example = "#{groonga_yml}.example"
if File.exist?(groonga_yml_example)
FileUtils.cp(groonga_yml_example, groonga_yml)
else