# Copyright (C) 2016-2017 Kouhei Sutou # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA require "active_model" require "groonga/client" require "groonga_client_model/version" require "groonga_client_model/client" require "groonga_client_model/client_opener" require "groonga_client_model/error" require "groonga_client_model/load_value_generator" require "groonga_client_model/modelizable" require "groonga_client_model/modelize" require "groonga_client_model/schema" require "groonga_client_model/schema_loader" require "groonga_client_model/validations/type_validator" require "groonga_client_model/record" module GroongaClientModel extend ActiveSupport::Autoload mattr_accessor :logger, instance_writer: false end ActiveSupport.run_load_hooks(:groonga_client_model, GroongaClientModel) if defined?(Rails) require "groonga_client_model/railtie" end ActiveSupport.on_load(:i18n) do I18n.load_path << "#{__dir__}/groonga_client_model/locale/en.yml" I18n.load_path << "#{__dir__}/groonga_client_model/locale/ja.yml" end