This file contains 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
class UsersController < Clearance::UsersController | |
# Override and add in a check for invitation code | |
def create | |
@user = User.new params[:user] | |
invite_code = params[:invite_code] | |
@invite = Invite.find_redeemable(invite_code) | |
# Invite code is present, there is an associated invite, and it is the user's invite | |
if invite_code && @invite && @invite.email == @user.email |
This file contains 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
debug_prints = [] | |
# scan all source files for ;! annotations | |
(Dir.glob("src/**/*.h") + Dir.glob("src/**/*.s")).each do |file| | |
File.open(file, "r") do |file| | |
capture_next_line = false | |
file.readlines.each do |line| | |
if capture_next_line | |
debug_prints[-1][:name] = line.strip.split(":").first | |
capture_next_line = false |
NewerOlder