Initial commit

This commit is contained in:
Stanislav Kolotinskiy 2021-03-19 17:31:38 +02:00
commit 0cec39413f
116 changed files with 9683 additions and 0 deletions

View file

@ -0,0 +1,11 @@
class BooksPresenter < SimpleDelegator
include ActiveSupport::NumberHelper
def price
number_to_currency(super / 100)
end
def authors
super.map { |author| "#{author.first_name} #{author.last_name}" }.join(', ')
end
end