raven/lib/models/item.rb

14 lines
182 B
Ruby

class Item < Sequel::Model
one_to_many :item_comments
def type_selected?(option)
if self.type == option
return 'selected'
else
return ''
end
end
end