Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling settings.inspect drops all unsaved setting values #1

Open
echannel-leon opened this issue Oct 23, 2012 · 0 comments
Open

Calling settings.inspect drops all unsaved setting values #1

echannel-leon opened this issue Oct 23, 2012 · 0 comments
Labels

Comments

@echannel-leon
Copy link
Contributor

Two ways to reproduce this issue:

a) in settingcrazy gem, change line #10 to:

before    { subject.foo = "bar"; subject.inspect; model.save! }

and 3 examples would fail, or

b) fires up rails console of DC app, do the following:

vi = Scenario::Campaign::VendorInstance.last # make sure this instance doesn't have setting values at this point
vi.settings.platform = '1'
vi.settings # => {} not {:platform => '1'}
vi.save! # setting for platform is not saved

I believe line #70 in settings_proxy.rb causes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant