Class: Spotlight::ContactEmail

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
Devise::Models
Defined in:
app/models/spotlight/contact_email.rb

Overview

Exhibit feedback contacts

Instance Method Summary collapse

Instance Method Details

#recently_sent?Boolean

Returns:

  • (Boolean)


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

def recently_sent?
  confirmation_sent_at > 3.days.ago if confirmation_sent_at?
end

#to_sObject



13
14
15
# File 'app/models/spotlight/contact_email.rb', line 13

def to_s
  email
end