1
0
Fork 0
dokkan-data-rails/app/models/super_attack.rb

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