module DogEars
Constants
- VERSION
Public Class Methods
bookmark(user, path, title, level=nil)
click to toggle source
# File lib/dog_ears.rb, line 31 def self.bookmark(user, path, title, level=nil) b = Bookmark.new do |b| b.user = user b.path = path b.title = title.presence || path b.level = level end b.save! b end