Send email asynchroniously using Sidekiq.
Create your mailer us usual:
| # | |
| # Install the MYSQL driver | |
| # gem install mysql2 | |
| # | |
| # Ensure the MySQL gem is defined in your Gemfile | |
| # gem 'mysql2' | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: |
| $('.radio_with_uncheck').on('click', 'input[type="radio"]', function() { | |
| var $radio = $(this); | |
| var group = $('input[name="' + this.name + '"]'); | |
| if ($radio.prop('checked') && $radio.data('was-checked')) { | |
| $radio.prop('checked', false); | |
| } | |
| group.data('was-checked', false); | |
| $radio.data('was-checked', $radio.prop('checked')); |
| $('.checkbox_like_radio').on('click', 'input[type="checkbox"]', function() { | |
| $(this) | |
| .closest('.checkbox_like_radio') | |
| .find('input[type="checkbox"]') | |
| .not(this) | |
| .prop('checked', false); | |
| }); |