Sha256: 4a30fbdc86ffb3607f39bc524b7bcae3bc6c53ad951b803ff3122db543079feb
Contents?: true
Size: 399 Bytes
Versions: 5
Compression:
Stored size: 399 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
5 entries across 5 versions & 1 rubygems