refactoring and rubocop changes
This commit is contained in:
parent
f7ec73f85e
commit
5475086622
13 changed files with 33 additions and 10 deletions
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Application helper
|
||||
module ApplicationHelper
|
||||
end
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Books helper
|
||||
module BooksHelper
|
||||
def cart_summary
|
||||
number_to_currency(@books.map(&:price).reduce(:+))
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Sessions helper
|
||||
module SessionsHelper
|
||||
end
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Users helper
|
||||
module UsersHelper
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue