lib/handle.rb in handle-system-0.0.5 vs lib/handle.rb in handle-system-0.0.6
- old
+ new
@@ -2,9 +2,11 @@
require "handle/record"
require "handle/field"
require "handle/field/admin"
module Handle
+ HOME = ENV['HDL_HOME'] || File.expand_path('../../vendor/handle',__FILE__)
+
persistence_module = Module.const_defined?('JRuby') ? 'java' : 'command'
require "handle/#{persistence_module}"
Record.send(:include, Handle::Persistence)
class HandleError < Exception
def initialize msg=nil