Created
January 10, 2015 20:55
-
-
Save jimsynz/f302606941aec048a88d to your computer and use it in GitHub Desktop.
Patches for the RailsCamp GitLab Vagrant box.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- user.rb.orig 2015-01-10 20:53:40.369172619 +0000 | |
| +++ user.rb 2015-01-10 19:16:38.650782073 +0000 | |
| @@ -180,6 +180,8 @@ | |
| scope :without_projects, -> { where('id NOT IN (SELECT DISTINCT(user_id) FROM members)') } | |
| scope :potential_team_members, ->(team) { team.members.any? ? active.not_in_team(team) : active } | |
| + after_create :confirm! | |
| + | |
| # | |
| # Class methods | |
| # | |
| @@ -243,6 +245,11 @@ | |
| # Instance methods | |
| # | |
| + # Added by @jamesotron for Rails Camp. | |
| + def send_confirmation_notification? | |
| + false | |
| + end | |
| + | |
| def to_param | |
| username | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| external_url 'http://gitlab.rc' | |
| gitlab_rails['time_zone'] = 'Pacific/Auckland' | |
| gitlab_rails['gitlab_default_can_create_group'] = true | |
| gitlab_rails['gitlab_username_changing_enabled'] = true | |
| gitlab_rails['gitlab_signup_enabled'] = true | |
| gitlab_rails['gitlab_signin_enabled'] = true | |
| gitlab_rails['gravatar_enabled'] = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment