Module: MailStyle::InlineStyles::InstanceMethods

Defined in:
lib/mail_style/sass_support.rb,
lib/mail_style/inline_styles.rb

Instance Method Summary collapse

Instance Method Details

#create_mail_with_inline_stylesObject



10
11
12
13
# File 'lib/mail_style/inline_styles.rb', line 10

def create_mail_with_inline_styles
  write_inline_styles
  create_mail_without_inline_styles
end

#css_file_with_sassObject



4
5
6
7
8
9
10
11
# File 'lib/mail_style/sass_support.rb', line 4

def css_file_with_sass
  p "css_file_with_sass"
  if !Sass::Plugin.checked_for_updates || Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check]
    Sass::Plugin.update_stylesheets
  end

  css_file_without_sass
end