jamesds/pass_crypt

require_relative not in Ruby 1.8.x

murraysum opened this issue · 1 comments

Issue

Only read-access to repository so here is a fix to get pass_crypt running on Ruby 1.8.x as require_relative is not part of the language before 1.9.x

Fix

if RUBY_VERSION < "1.9"
    require File.join(File.dirname(__FILE__), "auth_model")
else
    require_relative "auth_model"
end

Good fix, thanks. Although, if the first line works for Ruby 1.8 - 1.9 I might just stick with that for simplicity! Do you want to make a pull request?