Module: EmailHelper
- Defined in:
- app/helpers/email_helper.rb
Instance Method Summary collapse
Instance Method Details
#for_email? ⇒ Boolean
9 10 11 |
# File 'app/helpers/email_helper.rb', line 9 def for_email? @for_email == true end |
#render_scss(relative_path) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/email_helper.rb', line 3 def render_scss(relative_path) asset = Rails.application.assets.find_asset(relative_path) raise "Asset not found #{relative_path.inspect}" unless asset asset.to_s.html_safe end |