Sha256: f9e41e5e1a5138a90b018d2048f5d0e2f605c17aab4c69080a9bd49939b09fd7
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
# frozen_string_literal: true # generado con pg_rails module Admin class EmailsController < AdminController include PgEngine::Resource before_action { @clase_modelo = Email } before_action(only: :index) { authorize Email } before_action :set_instancia_modelo, only: %i[new create show edit update destroy] add_breadcrumb Email.nombre_plural, :admin_emails_path after_action only: :create do if @saved PgEngine::AdminMailer.with(email_object: @email).admin_mail.deliver_later end end private def atributos_permitidos %i[status from_address from_name reply_to to subject body_input associated_id associated_type] end def atributos_para_buscar %i[accepted_at delivered_at opened_at from_address from_name reply_to to subject body_input tags message_id mailer status_detail status] end def atributos_para_listar %i[from_address to subject body_input tags associated status] end def atributos_para_mostrar %i[message_id status status_detail accepted_at delivered_at opened_at from_address from_name reply_to to subject body_input tags associated mailer encoded_eml_link] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pg_rails-7.3.0 | pg_engine/app/controllers/admin/emails_controller.rb |