From 0929719a845897cc8567cf972e07a69a71f0fa6f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 30 Nov 2023 13:29:08 -0500 Subject: Migrate to a full rails app --- app/helpers/application_helper.rb | 2 ++ app/helpers/puzzles_helper.rb | 7 +++++++ app/helpers/wittle/application_helper.rb | 4 ---- app/helpers/wittle/puzzles_helper.rb | 9 --------- 4 files changed, 9 insertions(+), 13 deletions(-) create mode 100644 app/helpers/application_helper.rb create mode 100644 app/helpers/puzzles_helper.rb delete mode 100644 app/helpers/wittle/application_helper.rb delete mode 100644 app/helpers/wittle/puzzles_helper.rb (limited to 'app/helpers') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/helpers/puzzles_helper.rb b/app/helpers/puzzles_helper.rb new file mode 100644 index 0000000..ded1e8d --- /dev/null +++ b/app/helpers/puzzles_helper.rb @@ -0,0 +1,7 @@ +module PuzzlesHelper + + def humanize_interval(seconds) + "#{(seconds / 60).to_s.rjust(2, '0')}:#{(seconds % 60).to_s.rjust(2, '0')}" + end + +end diff --git a/app/helpers/wittle/application_helper.rb b/app/helpers/wittle/application_helper.rb deleted file mode 100644 index 8fcb2c9..0000000 --- a/app/helpers/wittle/application_helper.rb +++ /dev/null @@ -1,4 +0,0 @@ -module Wittle - module ApplicationHelper - end -end diff --git a/app/helpers/wittle/puzzles_helper.rb b/app/helpers/wittle/puzzles_helper.rb deleted file mode 100644 index 64364c6..0000000 --- a/app/helpers/wittle/puzzles_helper.rb +++ /dev/null @@ -1,9 +0,0 @@ -module Wittle - module PuzzlesHelper - - def humanize_interval(seconds) - "#{(seconds / 60).to_s.rjust(2, '0')}:#{(seconds % 60).to_s.rjust(2, '0')}" - end - - end -end -- cgit 1.4.1