spree/spree — Issue #1168: Preferences broken on 1-0-stable
Author: r3ap3r2004
Created: 2012-02-21 00:03:23+00:00
State: open

The preferences system isn't working properly on 1-0-stable commit c1efb63fe2bac4159bb6dbd6a1a67545792f00e7

Steps to reproduce:

1) Start the console
$rails c
2) Set the logo preference
>Spree::Config.set(:logo => 'my_cool_logo.png'
3) Get the preference
> Spree::Config[:logo]

Which will return: "admin/bg/spree_50.png"

The proper value is being stored in the database, but it is not being pulled back when reading the value. Restarting the server also does not read in the new value from the database.

I know it was working on commit 2dcd5c50d628dff749e4ff027308523d7b363154 but I don't know which commit actually broke it.