Sha256: e3d7462f6de9d7a31025500a5e13f388a8d73008ef0e072fff79ca4aedf0d467

Contents?: true

Size: 1005 Bytes

Versions: 28

Compression:

Stored size: 1005 Bytes

Contents

# frozen_string_literal: true

# generado con pg_rails

module Admin
  class EmailsController < AdminController
    include PgEngine::Resource

    self.clase_modelo = Email

    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

28 entries across 28 versions & 1 rubygems

Version Path
pg_rails-7.6.28 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.27 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.26 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.25 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.24 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.24.pre.5 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.24.pre.4 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.24.pre.3 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.23 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.22 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.22.pre.3 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.22.pre.2 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.22.pre.1 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.21 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.21.pre.11 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.21.pre.10 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.21.pre.9 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.21.pre.8 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.21.pre.7 pg_engine/app/controllers/admin/emails_controller.rb
pg_rails-7.6.21.pre.6 pg_engine/app/controllers/admin/emails_controller.rb