Add display_resource to models
This commit is contained in:
parent
ce08887c4e
commit
00476ec86c
3 changed files with 12 additions and 0 deletions
|
|
@ -8,4 +8,8 @@ class Character < ApplicationRecord
|
||||||
prefix: true
|
prefix: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def display_resource(character)
|
||||||
|
character.name_en
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,8 @@ class Summon < ApplicationRecord
|
||||||
prefix: true
|
prefix: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def display_resource(summon)
|
||||||
|
summon.name_en
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,8 @@ class Weapon < ApplicationRecord
|
||||||
prefix: true
|
prefix: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def display_resource(weapon)
|
||||||
|
weapon.name_en
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue