12 lines
220 B
Ruby
12 lines
220 B
Ruby
class SuperAttack < ActiveRecord::Base
|
|
has_paper_trail
|
|
|
|
validates :name, presence: true
|
|
validates :description, presence: true
|
|
|
|
default_scope { order(:name) }
|
|
|
|
def full
|
|
"#{name} - #{description}"
|
|
end
|
|
end
|