Class: Inquiries::Inquiry
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Inquiries::Inquiry
- Defined in:
- app/models/inquiries/inquiry.rb
Class Method Summary collapse
- .confirmation_subject ⇒ Object
- .latest(number = 7, include_spam = false) ⇒ Object
- .notification_recipients ⇒ Object
- .notification_subject ⇒ Object
- .send_confirmation? ⇒ Boolean
Class Method Details
.confirmation_subject ⇒ Object
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_recipients ⇒ Object
26 27 28 |
# File 'app/models/inquiries/inquiry.rb', line 26 def self.notification_recipients settings['notification-recipients'] end |
.notification_subject ⇒ Object
30 31 32 |
# File 'app/models/inquiries/inquiry.rb', line 30 def self.notification_subject settings['notification-subject'] end |
.send_confirmation? ⇒ Boolean
22 23 24 |
# File 'app/models/inquiries/inquiry.rb', line 22 def self.send_confirmation? settings['send-confirmation'] ? true : false end |