Sha256: 5c4871c7debc707260313ab8a15fd13f8a1d8c795a2f76fcf3016e4ec4f87f82

Contents?: true

Size: 395 Bytes

Versions: 31

Compression:

Stored size: 395 Bytes

Contents

class Backend::EmailsController < Backend::BaseController
  include Concerns::PaginationController

  before_action -> { breadcrumb.add t('b.emails'), backend_emails_path }

  def index
    @emails = paginate Email.order('id DESC')
  end

  def show
    @email = Email.find params[:id]
  end

  def html_content
    @email = Email.find params[:id]
    render text: @email.html_content
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
udongo-7.0.4 app/controllers/backend/emails_controller.rb
udongo-7.0.3 app/controllers/backend/emails_controller.rb
udongo-7.0.2 app/controllers/backend/emails_controller.rb
udongo-7.0.1 app/controllers/backend/emails_controller.rb
udongo-7.0.0 app/controllers/backend/emails_controller.rb
udongo-6.6.3 app/controllers/backend/emails_controller.rb
udongo-6.6.2 app/controllers/backend/emails_controller.rb
udongo-6.6.1 app/controllers/backend/emails_controller.rb
udongo-6.6.0 app/controllers/backend/emails_controller.rb
udongo-6.5.2 app/controllers/backend/emails_controller.rb
udongo-6.5.1 app/controllers/backend/emails_controller.rb
udongo-6.5.0 app/controllers/backend/emails_controller.rb
udongo-6.4.1 app/controllers/backend/emails_controller.rb
udongo-6.4.0 app/controllers/backend/emails_controller.rb
udongo-6.3.2 app/controllers/backend/emails_controller.rb
udongo-6.3.1 app/controllers/backend/emails_controller.rb
udongo-6.3.0 app/controllers/backend/emails_controller.rb
udongo-6.2.1 app/controllers/backend/emails_controller.rb
udongo-6.2.0 app/controllers/backend/emails_controller.rb
udongo-6.1.0 app/controllers/backend/emails_controller.rb