Class: Bookmark

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/bookmark.rb

Instance Method Summary collapse

Instance Method Details

#set_default_userObject


25
26
27
# File 'app/models/bookmark.rb', line 25

def set_default_user
  self.owner ||= User.current
end

#to_paramObject


29
30
31
# File 'app/models/bookmark.rb', line 29

def to_param
  name
end