Module: LetterThief
- Defined in:
- lib/letter_thief.rb,
lib/letter_thief/engine.rb,
lib/letter_thief/version.rb,
lib/letter_thief/interceptor.rb,
lib/letter_thief/delivery_method.rb,
app/models/letter_thief/email_search.rb,
app/jobs/letter_thief/application_job.rb,
app/models/letter_thief/email_message.rb,
app/models/letter_thief/application_record.rb,
app/helpers/letter_thief/application_helper.rb,
lib/generators/letter_thief/install_generator.rb,
app/controllers/letter_thief/application_controller.rb,
app/controllers/letter_thief/email_messages_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, Generators Classes: ApplicationController, ApplicationJob, ApplicationRecord, DeliveryMethod, EmailMessage, EmailMessagesController, EmailSearch, Engine, Interceptor
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.used_activestorage_space ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/letter_thief.rb', line 7 def self.used_activestorage_space ActiveStorage::Blob .joins(:attachments) .where(active_storage_attachments: { record_type: "LetterThief::EmailMessage" }).sum(:byte_size) end |