Sha256: b2c9a5540c475091c3fa1ce9fb283d3d65ab824e39577c2a6e96b8ddb6e6d060
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
class EmailsController < Spree::BaseController include ActionView::Helpers::TagHelper include ActionView::Helpers::TextHelper def show @subscriber = Subscriber.find_by_token(params[:token]) @email = Email.find_by_token(params[:id]) return redirect_to new_subscriber_path unless @email.recipients.include?(@subscriber.email) @email_subject = @email.render(:subject, @subscriber) @text = @email.render(:body, @subscriber) @base_url = "http://#{Spree::Config[:site_url]}" render :layout => 'email', :text => simple_format(@text) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_mail-0.40.0.3 | app/controllers/emails_controller.rb |
spree_mail-0.40.0.2 | app/controllers/emails_controller.rb |
spree_mail-0.40.0.1 | app/controllers/emails_controller.rb |