books edition by admin
This commit is contained in:
parent
5095f63fd7
commit
e36cc36947
10 changed files with 119 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue