Sha256: 91bbf420109460acde6cd765724aaf517b00a0d23b1f8466e8b9f9f6ce4d80d0

Contents?: true

Size: 330 Bytes

Versions: 13

Compression:

Stored size: 330 Bytes

Contents

begin
  ActiveRecord::Base.connection.execute("SELECT owner_id, owner_type, name, value FROM spree_preferences WHERE 'key' IS NULL").each do |pref|
    warn "[WARNING] Orphaned preference `#{pref[2]}` with value `#{pref[3]}` for #{pref[1]} with id of: #{pref[0]}, you should reset the preference value manually."
  end
rescue
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
spree_core-1.2.5 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.6 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.5 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.2.4 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.3.2 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.2.3 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.3.1 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.3.0 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.3.0.rc2 config/initializers/check_for_orphaned_preferences.rb
dup_spree_core-1.3.0.rc1 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.3.0.rc1 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.2.2 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.4 config/initializers/check_for_orphaned_preferences.rb