Module: Glib
- Defined in:
- app/policies/glib/application_policy.rb,
lib/glib/value.rb,
lib/glib/engine.rb,
lib/glib/version.rb,
app/models/glib/text.rb,
lib/glib/crypt/utils.rb,
lib/glib/test_helpers.rb,
lib/glib/mailer_tester.rb,
lib/glib/integration_test.rb,
lib/glib/json_crawler/http.rb,
app/helpers/glib/enum_helper.rb,
app/helpers/glib/urls_helper.rb,
lib/glib/dynamic_text/config.rb,
lib/glib/json_crawler/router.rb,
app/helpers/glib/forms_helper.rb,
app/helpers/glib/format_helper.rb,
lib/glib/json_crawler/coverage.rb,
lib/glib/time_freezable_mailer.rb,
lib/glib/time_returning_mailer.rb,
app/helpers/glib/json_ui/default.rb,
app/models/glib/application_record.rb,
app/models/glib/active_storage/blob.rb,
app/models/glib/dynamic_text_record.rb,
app/controllers/glib/home_controller.rb,
app/helpers/glib/json_ui/page_helper.rb,
lib/glib/json_crawler/action_crawler.rb,
app/helpers/glib/dynamic_texts_helper.rb,
app/helpers/glib/json_ui/menu_builder.rb,
app/helpers/glib/json_ui/view_builder.rb,
app/models/glib/dummy_job_application.rb,
lib/generators/glib/install_generator.rb,
app/channels/glib/channel/chat_channel.rb,
app/helpers/glib/dynamic_images_helper.rb,
app/helpers/glib/json_ui/list_builders.rb,
app/helpers/glib/json_ui/action_builder.rb,
app/helpers/glib/json_ui/styling_helper.rb,
app/helpers/glib/json_ui/table_builders.rb,
app/models/concerns/glib/soft_deletable.rb,
app/channels/glib/channel/online_channel.rb,
app/helpers/glib/json_ui/response_helper.rb,
app/helpers/glib/json_ui/abstract_builder.rb,
app/helpers/glib/json_ui/analytics_helper.rb,
app/helpers/glib/json_ui/generic_builders.rb,
app/models/glib/active_storage/attachment.rb,
app/models/concerns/glib/enum_humanization.rb,
lib/glib/json_crawler/action_crawlers/menu.rb,
app/channels/glib/channel/is_typing_channel.rb,
app/helpers/glib/app_feature_support_helper.rb,
app/channels/glib/channel/appearance_channel.rb,
app/helpers/glib/json_ui/builder/mouse_events.rb,
app/helpers/glib/json_ui/dynamic_field_builders.rb,
lib/glib/json_crawler/action_crawlers/action_http.rb,
lib/glib/json_crawler/action_crawlers/dialogs_show.rb,
lib/glib/json_crawler/action_crawlers/forms_submit.rb,
lib/glib/json_crawler/action_crawlers/nav_initiate.rb,
lib/glib/json_crawler/action_crawlers/run_multiple.rb,
lib/glib/json_crawler/action_crawlers/windows_open.rb,
app/controllers/glib/glib_direct_uploads_controller.rb,
lib/glib/json_crawler/action_crawlers/dialogs_alert.rb
Overview
To use this, simply:
-
Include the module
-
Add this migration: ‘add_column :model, :deleted_at, :datetime, null: true`
After that, any call to ‘destroy` will automatically be a soft-deletion.
Defined Under Namespace
Modules: ActiveStorage, Analytics, AppFeatureSupportHelper, Auth, Channel, ClassMethods, DynamicImagesHelper, DynamicText, DynamicTextsHelper, EnumHelper, EnumHumanization, FormatHelper, FormsHelper, Generators, JsonCrawler, JsonUi, MailerTester, SoftDeletable, TestHelpers, TimeFreezableMailer, TimeReturningMailer, UrlsHelper, Value, Web Classes: ApplicationPolicy, ApplicationRecord, Crypt, DummyJobApplication, DynamicTextRecord, GlibDirectUploadsController, HomeController, IntegrationTest, Text