lib/grendel/link.rb in grendel-ruby-0.1.1 vs lib/grendel/link.rb in grendel-ruby-0.1.2

- old
+ new

@@ -1,15 +1,15 @@ module Grendel class Link attr_accessor :document, :user, :uri - + def initialize(document, user, params = {}) params.symbolize_keys! @document = document @user = user - @uri = params[:uri] ? + @uri = params[:uri] ? URI.parse(params[:uri]).path : "/links/" + @user.id # escape this? end - + end end \ No newline at end of file