10 lines
170 B
Ruby
10 lines
170 B
Ruby
|
class Asset < ActiveRecord::Base
|
||
|
validates_presence_of :tag, :category
|
||
|
has_many :comments
|
||
|
has_many :softwares
|
||
|
|
||
|
def tag_with_name
|
||
|
"#{tag} - #{name}"
|
||
|
end
|
||
|
end
|