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