Module: Notee::Configuration
- Included in:
- Notee
- Defined in:
- lib/notee/configuration.rb
Constant Summary collapse
- VALID_OPTIONS_KEY =
[ :notee_id, :notee_password, :recaptcha_key, :recaptcha_secret_key, :blog_meta, :google_analytics ].freeze
- DEFAULT_NOTEE_ID =
root-user
nil
- DEFAULT_NOTEE_PASSWORD =
nil
- DEFAULT_RECAPTCHA_KEY =
recaptcha
nil
- DEFAULT_RECAPTCHA_SECRET_KEY =
nil
- DEFAULT_BLOG_META =
blog
nil
- DEFAULT_GOOGLE_ANALYTICS =
google-analytics
nil
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
34 35 36 |
# File 'lib/notee/configuration.rb', line 34 def self.extended(base) base.reset end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
30 31 32 |
# File 'lib/notee/configuration.rb', line 30 def configure yield self end |
#reset ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'lib/notee/configuration.rb', line 38 def reset self.notee_id = DEFAULT_NOTEE_ID self.notee_password = DEFAULT_NOTEE_PASSWORD self.recaptcha_key = DEFAULT_RECAPTCHA_KEY self.recaptcha_secret_key = DEFAULT_RECAPTCHA_SECRET_KEY self. = DEFAULT_BLOG_META self.google_analytics = DEFAULT_GOOGLE_ANALYTICS end |