Created
June 2, 2014 14:44
-
-
Save johnantoni/0bcd464374ea41d594aa to your computer and use it in GitHub Desktop.
bazooka mail-preview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MailPreview < MailView | |
def search | |
saved_search = SavedSearch.find(573114) | |
Notifier::User.saved_search_alert(saved_search) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add before "# Legacy route for the iOS Request Viewing action." | |
if Rails.env.development? | |
mount MailPreview => 'mail_view' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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