Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
damianlegawiec committed Feb 15, 2021
1 parent 9de43ca commit f16dd76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spree/store_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Spree::StoreDecorator
def self.prepended(base)
if ::ApplicationRecord.connection.table_exists?(:spree_store_translations)
if ::ApplicationRecord.connected? && ::ApplicationRecord.connection.table_exists?(:spree_store_translations)
base.translates :name, :meta_description, :meta_keywords, :seo_title, fallbacks_for_empty_translations: true
end
end
Expand Down

0 comments on commit f16dd76

Please sign in to comment.