diff options
Diffstat (limited to 'app/models/character.rb')
-rw-r--r-- | app/models/character.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/character.rb b/app/models/character.rb index b4e597b..91f0a66 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -100,7 +100,7 @@ class Character < ApplicationRecord self.states.all.select { |s| !s.expired? } end - def pay_cost_for(activity) + def pay_activity_cost CharacterItem.transaction do activity.whatnot[:cost]&.each do |cost| case cost[:type] |