raven/lib/models/item.rb

18 lines
235 B
Ruby
Raw Permalink Normal View History

2022-12-07 17:52:27 -05:00
class Item < Sequel::Model
2022-12-08 01:32:41 -05:00
one_to_many :item_comments
2022-12-07 17:52:27 -05:00
def getLink()
return "/item/#{self.id}"
end
def type_selected?(option)
if self.type == option
return 'selected'
else
return ''
end
end
2022-12-07 17:52:27 -05:00
end