Sha256: a9de4735c6b035c4a3d7a1220ad8ec24a8732389b4d15b369e6550eefd6a3e52
Contents?: true
Size: 393 Bytes
Versions: 6
Compression:
Stored size: 393 Bytes
Contents
class Backend::EmailsController < BackendController include Concerns::PaginationController before_action -> { breadcrumb.add t('b.emails'), backend_emails_path } def index @emails = paginate Email.all.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
6 entries across 6 versions & 1 rubygems