Commit b4cea2f93bfb92648ce08c522a427b39a93c3927
1 parent
717faee7
Exists in
master
and in
1 other branch
Add config example
Showing
2 changed files
with
11 additions
and
0 deletions
Show diff stats
config/config.example.yml
... | ... | @@ -39,6 +39,13 @@ user_has_username: false |
39 | 39 | # but you want to leave a short comment. |
40 | 40 | allow_comments_with_issue_tracker: true |
41 | 41 | |
42 | +# Enable Gravatar. | |
43 | +use_gravatar: false | |
44 | +# Default Gravatar size. | |
45 | +gravatar_size: 40 | |
46 | +# Default Gravatar image, can be: mm, identicon, monsterid, wavatar, retro. | |
47 | +gravatar_default: identicon | |
48 | + | |
42 | 49 | # Setup your deploy options for capistrano. |
43 | 50 | deployment: |
44 | 51 | hosts: | ... | ... |
config/initializers/_load_config.rb
... | ... | @@ -14,6 +14,10 @@ unless defined?(Errbit::Config) |
14 | 14 | Errbit::Config.user_has_username = ENV['ERRBIT_USER_HAS_USERNAME'] |
15 | 15 | Errbit::Config.allow_comments_with_issue_tracker = ENV['ERRBIT_ALLOW_COMMENTS_WITH_ISSUE_TRACKER'] |
16 | 16 | |
17 | + Errbit::Config.use_gravatar = ENV['ERRBIT_USE_GRAVATAR'] | |
18 | + Errbit::Config.gravatar_size = ENV['ERRBIT_GRAVATAR_SIZE'] | |
19 | + Errbit::Config.gravatar_default = ENV['ERRBIT_GRAVATAR_DEFAULT'] | |
20 | + | |
17 | 21 | Errbit::Config.github_authentication = ENV['GITHUB_AUTHENTICATION'] |
18 | 22 | Errbit::Config.github_client_id = ENV['GITHUB_CLIENT_ID'] |
19 | 23 | Errbit::Config.github_secret = ENV['GITHUB_SECRET'] | ... | ... |