Skip to content

Instantly share code, notes, and snippets.

@jimsynz
Created January 10, 2015 20:55
Show Gist options
  • Select an option

  • Save jimsynz/f302606941aec048a88d to your computer and use it in GitHub Desktop.

Select an option

Save jimsynz/f302606941aec048a88d to your computer and use it in GitHub Desktop.
Patches for the RailsCamp GitLab Vagrant box.
--- 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
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