Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Created June 2, 2014 14:44
Show Gist options
  • Save johnantoni/0bcd464374ea41d594aa to your computer and use it in GitHub Desktop.
Save johnantoni/0bcd464374ea41d594aa to your computer and use it in GitHub Desktop.
bazooka mail-preview
class MailPreview < MailView
def search
saved_search = SavedSearch.find(573114)
Notifier::User.saved_search_alert(saved_search)
end
end
# add before "# Legacy route for the iOS Request Viewing action."
if Rails.env.development?
mount MailPreview => 'mail_view'
end
# add to development group
gem 'mail_view', '~> 2.0.4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment