pote / stuff.rb secret
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View stuff.rb
1 2 3 4 5 6 7 8 9 10 11 12
class UserCreationService
def initialize(user_klass = User, log_klass = Log)
@user_klass = user_klass
@log_klass = log_klass
end
 
def create(params)
@user_klass.create(params).tap do |u|
@log_klass.new_user(u)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.