books edition by admin

This commit is contained in:
Karol Selak 2021-03-21 20:30:25 +01:00
parent 5095f63fd7
commit e36cc36947
10 changed files with 119 additions and 20 deletions

View file

@ -2,7 +2,11 @@ class BooksPresenter < SimpleDelegator
include ActiveSupport::NumberHelper
def price
number_to_currency(super / 100)
super / 100
end
def price_with_currency
number_to_currency(price)
end
def authors