Class: Setting
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Setting
- Defined in:
- app/models/setting.rb
Class Method Summary collapse
Instance Method Summary collapse
- #mailer=(mailer) ⇒ Object
- #sendmail_settings=(sendmail_settings) ⇒ Object
- #smtp_settings=(smtp_settings) ⇒ Object
Class Method Details
.current ⇒ Object
22 23 24 |
# File 'app/models/setting.rb', line 22 def self.current first end |
Instance Method Details
#mailer=(mailer) ⇒ Object
10 11 12 |
# File 'app/models/setting.rb', line 10 def mailer=(mailer) write_attribute(:mailer, OpenStruct.new(mailer)) end |
#sendmail_settings=(sendmail_settings) ⇒ Object
18 19 20 |
# File 'app/models/setting.rb', line 18 def sendmail_settings=(sendmail_settings) write_attribute(:sendmail_settings, OpenStruct.new(sendmail_settings)) end |
#smtp_settings=(smtp_settings) ⇒ Object
14 15 16 |
# File 'app/models/setting.rb', line 14 def smtp_settings=(smtp_settings) write_attribute(:smtp_settings, OpenStruct.new(smtp_settings)) end |