merges master and fix conflicts

This commit is contained in:
kikito
2015-09-10 18:09:19 +02:00
9 changed files with 107 additions and 0 deletions

View File

@@ -141,6 +141,10 @@ class User < ActiveRecord::Base
@@username_max_length ||= self.columns.find { |c| c.name == 'username' }.limit
end
def show_welcome_screen?
sign_in_count == 1 && unverified? && !organization
end
private
def validate_username_length