Send email asynchroniously using Sidekiq.
Create your mailer us usual:
| class ExcelDumper | |
| def initialize(array) | |
| @data = array | |
| end | |
| def to_xls(options = {}) | |
| output = %{<?xml version="1.0" encoding="UTF-8"?> | |
| <Workbook xmlns:x="urn:schemas-microsoft-com:office:excel" | |
| xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" | |
| xmlns:html="http://www.w3.org/TR/REC-html40" |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
| self.viewController = [[JBViewController alloc] initWithNibName:@"JBViewController" bundle:nil]; | |
| self.window.rootViewController = self.viewController; | |
| // ADD THIS LINE: | |
| [self.window setTransform:CGAffineTransformMakeScale(0.81, 0.81)]; | |
| class Account < ActiveRecord::Base | |
| def self.search(name = nil) | |
| # search logic | |
| end | |
| end |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| # Русский перевод для https://github.com/plataformatec/devise/tree/v3.2.4 | |
| # Другие переводы на http://github.com/plataformatec/devise/wiki/I18n | |
| ru: | |
| devise: | |
| confirmations: | |
| confirmed: "Ваша учётная запись подтверждена." | |
| send_instructions: "В течение нескольких минут Вы получите письмо с инструкциями по подтверждению Вашей учётной записи." | |
| send_paranoid_instructions: "Если Ваш адрес email есть в нашей базе данных, то в течение нескольких минут Вы получите письмо с инструкциями по подтверждению вашей учётной записи." | |
| failure: |
| @implementation FBStoryView | |
| { | |
| FBHeaderView *_headerView; | |
| FBMessageView *_messageView; | |
| FBAttachmentView *_attachmentView; | |
| FBLikeBarView *_likeBarView; | |
| } | |
| - (instancetype)initWithFrame:(CGRect)frame | |
| { |
| @implementation FBStoryView | |
| { | |
| FBHeaderView *_headerView; | |
| FBMessageView *_messageView; | |
| FBAttachmentView *_attachmentView; | |
| FBLikeBarView *_likeBarView; | |
| } | |
| - (instancetype)initWithFrame:(CGRect)frame | |
| { |
| # config/routes.rb | |
| YandexKassaIntegration::Application.routes.draw do | |
| # ... | |
| scope '/yandex_kassa' do | |
| controller 'yandex_kassa', constraints: { subdomain: 'ssl' } do | |
| post :check | |
| post :aviso | |
| get :success | |
| get :fail |
| # Русский перевод для https://github.com/plataformatec/devise/tree/v4.7.1 | |
| # Другие переводы на https://github.com/plataformatec/devise/wiki/I18n | |
| ru: | |
| devise: | |
| confirmations: | |
| confirmed: "Ваша учётная запись успешно подтверждена." | |
| send_instructions: "В течение нескольких минут вы получите письмо с инструкциями по подтверждению вашей учётной записи." | |
| send_paranoid_instructions: "Если ваш адрес email есть в нашей базе данных, то в течение нескольких минут вы получите письмо с инструкциями по подтверждению вашей учётной записи." | |
| failure: |