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

default false value for boolean is 'false' as String, but should be TrueClass or FalseClass #19

Open
denys-medynskyi opened this issue Feb 27, 2020 · 1 comment
Assignees
Labels

Comments

@denys-medynskyi
Copy link

DSL definition:

https://github.com/pivorakmeetup/pivorak-web-app/blob/development/config/initializers/ez_settings.rb#L11

  group :maintenance do
    key :enabled, type: :boolean, default: -> { false }
  end
$ rails c
[1] pry(main)> Ez::Settings[:app, :maintenance, :enabled]
=> "false"

Can you point me where I should fix that?

@denys-medynskyi denys-medynskyi changed the title default value for boolean is String default false value for boolean is 'false' as String, but should be TrueClass or FalseClass Feb 27, 2020
@sveredyuk
Copy link
Contributor

sveredyuk commented Feb 27, 2020

@deny7ko thx. It's a known issue. We need data type coercion on reading level

#15

@sveredyuk sveredyuk self-assigned this Feb 27, 2020
@sveredyuk sveredyuk added the bug label Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants