Module: Teamlab::MailSettings
- Included in:
- Defined in:
- lib/teamlab/modules/mail/mail_settings.rb
Overview
Methods for working with mail settings
Instance Method Summary collapse
-
#always_display_images ⇒ True, False
Get value of flag for dispay images.
- #set_always_display_images(enabled = true) ⇒ Void
Instance Method Details
#always_display_images ⇒ True, False
Returns get value of flag for dispay images.
13 14 15 |
# File 'lib/teamlab/modules/mail/mail_settings.rb', line 13 def always_display_images @request.get(%w[settings alwaysDisplayImages]) end |
#set_always_display_images(enabled = true) ⇒ Void
8 9 10 |
# File 'lib/teamlab/modules/mail/mail_settings.rb', line 8 def set_always_display_images(enabled = true) @request.put(%w[settings alwaysDisplayImages], enabled: enabled.to_s) end |