commit
8eccf7e152
2 changed files with 7 additions and 2 deletions
|
@ -6,4 +6,8 @@ class PassiveSkill < ActiveRecord::Base
|
||||||
uniqueness: { scope: :name }
|
uniqueness: { scope: :name }
|
||||||
|
|
||||||
default_scope { order(:name) }
|
default_scope { order(:name) }
|
||||||
|
|
||||||
|
def full
|
||||||
|
"#{name} - #{description}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -17,8 +17,9 @@
|
||||||
.row
|
.row
|
||||||
.col-md-6
|
.col-md-6
|
||||||
= f.association :leader_skill, label_method: :description
|
= f.association :leader_skill, label_method: :description
|
||||||
.col-md-6
|
.row
|
||||||
= f.association :passive_skill
|
.col-md-12
|
||||||
|
= f.association :passive_skill, label_method: :full
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= f.association :super_attack, label_method: :full
|
= f.association :super_attack, label_method: :full
|
||||||
|
|
Loading…
Reference in a new issue