Class: Inquiries::Inquiry

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

Class Method Summary collapse

Class Method Details

.confirmation_subjectObject



34
35
36
# File 'app/models/inquiries/inquiry.rb', line 34

def self.confirmation_subject
  settings['confirmation-subject']
end

.latest(number = 7, include_spam = false) ⇒ Object



18
19
20
# File 'app/models/inquiries/inquiry.rb', line 18

def self.latest(number = 7, include_spam = false)
  include_spam ? limit(number) : ham.limit(number)
end

.notification_recipientsObject



26
27
28
# File 'app/models/inquiries/inquiry.rb', line 26

def self.notification_recipients
  settings['notification-recipients']
end

.notification_subjectObject



30
31
32
# File 'app/models/inquiries/inquiry.rb', line 30

def self.notification_subject
  settings['notification-subject']
end

.send_confirmation?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/inquiries/inquiry.rb', line 22

def self.send_confirmation?
  settings['send-confirmation'] ? true : false
end