What am I missing?

Hi guys,

I am breaking my head over an issue I bumped into: some settings in the settings table are not read properly.

For example: the var foodcoop.foodcoopnoord.use_mollie has a value --- false. This always seems to return a nil (regardless of the value). Some other variables behave similarly, all not defined as a value ruby/hash... But some values are returned: like foodcoop.foodcoopnoord.name

When I change the value to something like `--- !ruby/hash:ActiveSupport....` with a parameter=value pair, as most others have, I do get a value returned.

What kind of rails/ruby magic am I missing here?

For context: the actual behaviour is that settings changed on the admin panel, like Mollie values, as I am testing that, are saved but not used. So it only seems to use what is defined in the app_config.yml. So when I turn the feature off, in the panel, it is actually not. When I return to the page the checkmark is back again. Although the actual value in the table is updated.

Hm… I can’t tell from your description above - I’d have to debug it.

To be able to do so:
How are you testing this to run into the problem?

Is it a local foodcoop instance in a GitHub branch you’re on?

If yes, please share the branch/commit here along with any prerequisites and the steps leading up to the problem (1. Activate plugin in Gemfile, 2. Run migrations, 3. Start foodsoft, 4. Click here … 5. Expect this, but that happens…)