1
0
Fork 0

Show all relevant passive skill details

This commit is contained in:
Andrew Tomaka 2015-10-23 13:41:19 -04:00
parent 6e9ad101e0
commit 72c012a5df
2 changed files with 7 additions and 2 deletions

View File

@ -6,4 +6,8 @@ class PassiveSkill < ActiveRecord::Base
uniqueness: { scope: :name }
default_scope { order(:name) }
def full
"#{name} - #{description}"
end
end

View File

@ -17,8 +17,9 @@
.row
.col-md-6
= f.association :leader_skill, label_method: :description
.col-md-6
= f.association :passive_skill
.row
.col-md-12
= f.association :passive_skill, label_method: :full
.row
.col-md-12
= f.association :super_attack, label_method: :full