Module: Faucet
- Defined in:
- lib/faucet.rb,
lib/faucet/engine.rb,
lib/faucet/version.rb,
app/models/faucet/email.rb,
app/helpers/faucet/emails_helper.rb,
app/helpers/faucet/application_helper.rb,
app/controllers/faucet/emails_controller.rb,
app/controllers/faucet/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, EmailsHelper
Classes: ApplicationController, Email, EmailsController, Engine
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.today ⇒ Object
6
7
8
|
# File 'app/models/faucet/email.rb', line 6
def self.today
(Time.now.midnight)..Time.now.end_of_day
end
|
.yesterday ⇒ Object
10
11
12
|
# File 'app/models/faucet/email.rb', line 10
def self.yesterday
(1.day.ago.midnight)..1.day.ago.end_of_day
end
|