Module: Sequel::Plugins

Defined in:
lib/sequel/model/plugins.rb,
lib/sequel/plugins/schema.rb,
lib/sequel/plugins/caching.rb,
lib/sequel/model/deprecated_hooks.rb,
lib/sequel/plugins/hook_class_methods.rb,
lib/sequel/model/deprecated_validations.rb,
lib/sequel/plugins/single_table_inheritance.rb,
lib/sequel/plugins/validation_class_methods.rb

Overview

Empty namespace that plugins should use to store themselves, so they can be loaded via Model.plugin.

Plugins should be modules with one of the following conditions:

  • A singleton method named apply, which takes a model and additional arguments.

  • A module inside the plugin module named InstanceMethods, which will be included in the model class.

  • A module inside the plugin module named ClassMethods, which will extend the model class.

  • A module inside the plugin module named DatasetMethods, which will extend the model’s dataset.

Defined Under Namespace

Modules: Caching, DeprecatedHookClassMethods, DeprecatedValidationClassMethods, HookClassMethods, Schema, SingleTableInheritance, ValidationClassMethods