lib/active_groonga.rb in activegroonga-1.0.3 vs lib/active_groonga.rb in activegroonga-1.0.4
- old
+ new
@@ -15,17 +15,10 @@
require 'pathname'
require 'active_model'
-base_dir = Pathname(__FILE__).dirname
-rroonga_dir = (base_dir + "../../groonga").expand_path
-if rroonga_dir.exist?
- $LOAD_PATH.unshift(rroonga_dir + "ext" + "groonga")
- $LOAD_PATH.unshift(rroonga_dir + "lib")
-end
-
require 'groonga'
module ActiveGroonga
extend ActiveSupport::Autoload
@@ -46,6 +39,7 @@
autoload :Migrator
autoload :Migration
end
end
+base_dir = Pathname(__FILE__).dirname
I18n.load_path << (base_dir + 'active_groonga/locale/en.yml').to_s