Class: Inquiry

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

Class Method Summary collapse

Class Method Details

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



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

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