Sha256: 8ce5435a85809ba1101cf36bb3c42c5af202d83cecc179b84b8103a988d24d5a
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
require 'ostruct' class Setting < ActiveRecord::Base belongs_to :address, :dependent => :destroy serialize :mailer serialize :smtp_settings serialize :sendmail_settings serialize :attachments accepts_nested_attributes_for :address def self.current first end def smtp_settings settings = super || {} settings.update(:enable_starttls_auto => (settings[:enable_starttls_auto] == '1')) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forgeos_core-1.9.5.rc2 | app/models/setting.rb |
forgeos_core-1.9.5.rc1 | app/models/setting.rb |