Skip to content

Instantly share code, notes, and snippets.

@braidn
Last active December 21, 2015 16:48
Show Gist options
  • Save braidn/6335722 to your computer and use it in GitHub Desktop.
Save braidn/6335722 to your computer and use it in GitHub Desktop.
class AuthenticatorConstructor
def self.build(*args)
new.build(*args)
end
def build(authenticator, user_id)
authenticator.merge({user_id: user_id})
Authenticator.create(authenticator_params)
end
private
attr_accessor :auth_number, :user_id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment