Commit e702b4c71db464153817c099a5d3876a47b6a451

Authored by Francisco Júnior
1 parent 8f25b03a

skip the eager_load if the table of categories not exist

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config/initializers/eager_load.rb
1   -Rails.application.eager_load!
  1 +Rails.application.eager_load! if ActiveRecord::Base.connection.table_exists? 'categories'
... ...