Sha256: d8ba2482076de0c69ab9d8359a1e23d5838e720b7bbdd91ae60980c3a84c69f3

Contents?: true

Size: 330 Bytes

Versions: 17

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

17 entries across 17 versions & 1 rubygems

Version Path
spree_core-1.0.7 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.2.0 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.2.0.rc2 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.2.0.rc1 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.3 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.0.6 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.2 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.2.rc1 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.1 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.0 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.0.4 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.0.rc2 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.1.0.rc1 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.0.3 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.0.2 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.0.1 config/initializers/check_for_orphaned_preferences.rb
spree_core-1.0.0 config/initializers/check_for_orphaned_preferences.rb