lib/grendel/link.rb in grendel-ruby-0.1.2 vs lib/grendel/link.rb in grendel-ruby-0.1.3
- old
+ new
@@ -1,10 +1,10 @@
module Grendel
class Link
attr_accessor :document, :user, :uri
def initialize(document, user, params = {})
- params.symbolize_keys!
+ params = Mash.new(params)
@document = document
@user = user
@uri = params[:uri] ?
URI.parse(params[:uri]).path :
"/links/" + @user.id # escape this?
\ No newline at end of file