Sha256: 9eec57ca90cf3d629481339ad2a92c63465c5342d1a83ad870a18bec646a9519

Contents?: true

Size: 672 Bytes

Versions: 17

Compression:

Stored size: 672 Bytes

Contents

module Proclaim
	# Preview all emails at http://localhost:3000/rails/mailers/subscription_mailer
	class SubscriptionMailerPreview < ActionMailer::Preview
		def welcome_email
			subscription = Subscription.first
			SubscriptionMailer.welcome_email(subscription)
		end

		def new_post_notification_email
			subscription = Subscription.first
			post = Post.first
			SubscriptionMailer.new_post_notification_email(subscription, post)
		end

		def new_comment_notification_email
			subscription = Subscription.where("post_id <> ''").first
			comment = subscription.post.comments.first

			SubscriptionMailer.new_comment_notification_email(subscription, comment)
		end
	end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
proclaim-0.5.6 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.5.5 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.5.3 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.5.2 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.5.1 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.5.0 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.4.0 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.3.1 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.3.0 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.2.4 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.2.2 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.2.1 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.2.0 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.1.3 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.1.2 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.1.1 test/mailers/previews/proclaim/subscription_mailer_preview.rb
proclaim-0.1.0 test/mailers/previews/proclaim/subscription_mailer_preview.rb