Skip to content

Commit

Permalink
add core_extensions initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjcumming committed Sep 23, 2024
1 parent bd8a0c5 commit 587c138
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/core_extensions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dir[File.join(Rails.root, "lib", "core_extensions", "*.rb")].each {|l| require l }

Check failure on line 1 in config/initializers/core_extensions.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Style/FrozenStringLiteralComment: Missing frozen string literal comment.

Check failure on line 1 in config/initializers/core_extensions.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Rails/FilePath: Prefer `Rails.root.join('path', 'to').to_s`.

Check failure on line 1 in config/initializers/core_extensions.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Rails/RootPathnameMethods: `Rails.root` is a `Pathname`, so you can use `Rails.root.join("lib", "core_extensions", "*.rb")`.

Check failure on line 1 in config/initializers/core_extensions.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

Check failure on line 1 in config/initializers/core_extensions.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

Check failure on line 1 in config/initializers/core_extensions.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

Check failure on line 1 in config/initializers/core_extensions.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/SpaceInsideBlockBraces: Space between { and | missing.

0 comments on commit 587c138

Please sign in to comment.