Skip to content

falsey config values are not persisted #134

@bschrag620

Description

@bschrag620

In an effort to keep our application.rb file as close to a default rails app as possible, we chose to configure console1984 in an initializer using a Rails.application.reloader.to_prepare block.

Rails.application.reloader.to_preparse do
  Rails.application.configure do
    config.console1984.incinerate = false
  end
end

What we found out though is that the falsey values are not persisted. The current behavior of set_from is such that not present values are not assigned. I've opened a PR that aligns the behavior of console1984 with the behavior in audits1984.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions