Skip to content

Commit

Permalink
Move ConfigHelper into lib
Browse files Browse the repository at this point in the history
So these helpers are available to files which aren't loaded via
Zeitwerk.
  • Loading branch information
gbp committed Jan 9, 2025
1 parent 0dad6d5 commit 80c957e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 21 deletions.
18 changes: 0 additions & 18 deletions app/helpers/config_helper.rb

This file was deleted.

1 change: 0 additions & 1 deletion config/initializers/alaveteli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
require 'attachment_to_html'
require 'health_checks'
require 'mail_handler'
require 'ability'
require 'normalize_string'
require 'alaveteli_file_types'
require 'theme'
Expand Down
1 change: 1 addition & 0 deletions lib/alaveteli_mail_poller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'net/pop'
require 'config_helper'

class AlaveteliMailPoller
include ConfigHelper
Expand Down
1 change: 1 addition & 0 deletions lib/alaveteli_text_masker.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'tempfile'
require 'config_helper'

module AlaveteliTextMasker
include ConfigHelper
Expand Down
2 changes: 0 additions & 2 deletions lib/typeahead_search.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class TypeaheadSearch
include ConfigHelper

attr_accessor :query, :model, :page, :per_page, :wildcard, :run_search

def initialize(query, opts = {})
Expand Down

0 comments on commit 80c957e

Please sign in to comment.