Skip to content

Commit

Permalink
fix rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
just1602 committed Aug 26, 2024
1 parent ede7396 commit 7ec7d9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Locale < ApplicationRecord
validates :name_in_english, uniqueness: true
validates :name, uniqueness: true

enum language_direction: { ltr: 0, rtl: 1 }
enum :language_direction, { ltr: 0, rtl: 1 }

default_scope { order abbreviation: :asc }

Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Application < Rails::Application
config.add_autoload_paths_to_load_path = true
# TODO: rethink how to allow nested locales directories without load_path
# Allow nested diretories in locales
config.i18n.load_path += Dir[Rails.root.join('config/locales/**/*.{rb,yml}')]
config.i18n.load_path += Rails.root.glob('config/locales/**/*.{rb,yml}')

# Configuration for the application, engines, and railties goes here.
#
Expand Down

0 comments on commit 7ec7d9f

Please sign in to comment.