Ok. Will something like this look ok?

    def dbfile_path 
      @dbfile_path ||= begin
        require 'pathname' 
        path = Pathname.new configuration['database'] 
        path.absolute? ? path.to_s : File.join(root, path)
      end
    end