Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AnkurVyas-BTC/8db4fa5da6e66e954fdf91b6a492d6b0 to your computer and use it in GitHub Desktop.
Save AnkurVyas-BTC/8db4fa5da6e66e954fdf91b6a492d6b0 to your computer and use it in GitHub Desktop.
How to write formatted code when there are more parameters
def send_mail(source)
Mailer.deliver( to: '[email protected]',
from: '[email protected]',
subject: 'Message subject',
body: source.text)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment