Skip to content

Conversation

@timoschilling
Copy link
Member

add support for config.setting_name?

This adds a ActiveModel like questionmark attr checker:

  inheritable_setting :foo, true
  config.foo? # => true

  inheritable_setting :foo, false
  config.foo? # => false

  inheritable_setting :foo, ""
  config.foo? # => false

  inheritable_setting :foo, "bar"
  config.foo? # => true

This adds a ActiveModel like questionmark attr checker:

  inheritable_setting :foo, true
  config.foo? # => true

  inheritable_setting :foo, false
  config.foo? # => false

  inheritable_setting :foo, ""
  config.foo? # => false

  inheritable_setting :foo, "bar"
  config.foo? # => true
@dmitry
Copy link
Contributor

dmitry commented Nov 3, 2014

👍

timoschilling added a commit that referenced this pull request Nov 13, 2014
@timoschilling timoschilling merged commit a446de9 into master Nov 13, 2014
@timoschilling timoschilling deleted the setting_with_questionmark branch November 13, 2014 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants