Yehuda Katz & Tom Dale
Set the stage for the expectations and feel of the community - inclusive and welcoming
# POST /resource | |
def create | |
build_resource(sign_up_params) | |
resource.save | |
yield resource if block_given? | |
if resource.persisted? | |
if resource.active_for_authentication? | |
set_flash_message :notice, :signed_up if is_flashing_format? | |
sign_up(resource_name, resource) |
class RegistrationsController < Devise::RegistrationsController | |
def create | |
super do | |
resource.add_role(:moderator) | |
resource.save | |
end | |
end | |
end |
// Place your key bindings in this file to overwrite the defaultsauto[] | |
[ | |
{ | |
"key": "shift+cmd+down", | |
"command": "editor.action.moveLinesDownAction", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+cmd+down", | |
"command": "-editor.action.moveLinesDownAction", |
Pry.commands.alias_command 'c', 'continue' | |
Pry.commands.alias_command 's', 'step' | |
Pry.commands.alias_command 'n', 'next' |
#!/usr/bin/env ruby | |
if `grep -rls --include "*.rb" --include "*.js" "debugger" .` != "" | |
puts "A debugger statement was found, remove before committing." | |
exit(1) | |
end | |
if `grep -rls --include "*.rb" "binding.pry" .` != "" | |
puts "A pry statement was found, remove before committing." | |
exit(1) |