refactoring and rubocop changes

This commit is contained in:
Karol Selak 2021-03-22 04:38:35 +01:00
parent f7ec73f85e
commit 5475086622
13 changed files with 33 additions and 10 deletions

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
# Application helper
module ApplicationHelper
end

View file

@ -1,5 +1,6 @@
# frozen_string_literal: true
# Books helper
module BooksHelper
def cart_summary
number_to_currency(@books.map(&:price).reduce(:+))

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
# Sessions helper
module SessionsHelper
end

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
# Users helper
module UsersHelper
end