Sha256: 3a561999165fd392cbffe592e88535fe94f61062b6084e0e5d7f50966596fbb1

Contents?: true

Size: 265 Bytes

Versions: 11

Compression:

Stored size: 265 Bytes

Contents

module EmailHelper

  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

  def for_email?
    @for_email == true
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
houston-core-0.6.3 app/helpers/email_helper.rb
houston-core-0.6.2 app/helpers/email_helper.rb
houston-core-0.6.1 app/helpers/email_helper.rb
houston-core-0.6.0 app/helpers/email_helper.rb
houston-core-0.5.6 app/helpers/email_helper.rb
houston-core-0.5.5 app/helpers/email_helper.rb
houston-core-0.5.4 app/helpers/email_helper.rb
houston-core-0.5.3 app/helpers/email_helper.rb
houston-core-0.5.2 app/helpers/email_helper.rb
houston-core-0.5.1 app/helpers/email_helper.rb
houston-core-0.5.0 app/helpers/email_helper.rb