Skip to content

Instantly share code, notes, and snippets.

View hxegon's full-sized avatar
🎧
Always Be Coding

Cooper LeBrun hxegon

🎧
Always Be Coding
  • Vaudreuil-Dorion, QC
View GitHub Profile
class SomeClass
def initialize(current_account, form, request)
@form = form
@request = request
end
def call
if invalid?
form.errors.add(:credentials, :invalid)
return broadcast(:invalid, form)