Sha256: 69ddcb7a2f96abf91cb92d6654a8e9b20c7b9f5282d4f4ab7822b13b93c39bb9

Contents?: true

Size: 357 Bytes

Versions: 6

Compression:

Stored size: 357 Bytes

Contents

class EmailTemplate < ActiveRecord::Base
  before_save :clean_inputs

  attr_accessible :body, :subject, :name, :template_type, :sent_to, :when_sent,
    :email_template_comments_attributes, :from_name, :from_email, :reply_to, :send_via_mandrill,
    :send_via_gmail

  attr_accessor :params

  def clean_inputs
    body.strip!
    subject.strip!
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
no_notifier_needed-2.4.5 lib/generators/no_notifier_needed/templates/email_template.rb
no_notifier_needed-2.4.4 lib/generators/no_notifier_needed/templates/email_template.rb
no_notifier_needed-2.4.3 lib/generators/no_notifier_needed/templates/email_template.rb
no_notifier_needed-2.4.2 lib/generators/no_notifier_needed/templates/email_template.rb
no_notifier_needed-2.4.1 lib/generators/no_notifier_needed/templates/email_template.rb
no_notifier_needed-2.4.0 lib/generators/no_notifier_needed/templates/email_template.rb