Class: Setting

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/setting.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.currentObject



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