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)


19
20
21
# File 'app/models/spotlight/contact_email.rb', line 19

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

#to_sObject



15
16
17
# File 'app/models/spotlight/contact_email.rb', line 15

def to_s
  email
end