Skip to content

Commit

Permalink
Update config/initializers/custom_field_ransack_translations.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX authored Feb 24, 2024
1 parent d18e243 commit c29fc71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/custom_field_ransack_translations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#------------------------------------------------------------------------------
# Load field names for custom fields, for Ransack search
require './app/models/setting'
if Setting.database_and_table_exists? and ActiveRecord::Base.connection.table_exists?(:custom_fields)
if Setting.database_and_table_exists? && ActiveRecord::Base.connection.table_exists?(:custom_fields)
Rails.application.config.after_initialize do
I18n.backend.load_translations

Expand Down

0 comments on commit c29fc71

Please sign in to comment.