Sha256: 2a505a58d68f47432b757b7040061f2cf74502398fb0b849da1c91364f345fce
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
# Copyright (C) 2009 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. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA class Rails::Configuration attr_writer :active_groonga, :groonga_configuration_file def active_groonga @active_groonga ||= Rails::OrderedOptions.new end def groonga_configuration_file File.join(root_path, 'config', 'groonga.yml') end def groonga_configuration require 'erb' YAML::load(ERB.new(IO.read(groonga_configuration_file)).result) end end
Version data entries
4 entries across 4 versions & 1 rubygems