Module: Workers::Views

Included in:
NotificationService::Sms, Redemption::Notification
Defined in:
app/workers/workers/views.rb

Overview

typed: true

Instance Method Summary collapse

Instance Method Details

#render(template_name, locale: I18n.locale, locals: {}) ⇒ Object



4
5
6
7
8
# File 'app/workers/workers/views.rb', line 4

def render(template_name, locale: I18n.locale, locals: {})
  I18n.with_locale locale do
    ApplicationController.render template: "workers/#{template_name}", layout: nil, locals: locals, formats: :text
  end
end