Sha256: 847880983388121c5cb5b0a78f1256bea011efc8e3eaa4b8bd12ecab7bc7f642

Contents?: true

Size: 1.11 KB

Versions: 29

Compression:

Stored size: 1.11 KB

Contents

module Sequel
  # 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, 
  #   additional arguments, and an optional block.  This is called
  #   the first time the plugin is loaded for this model (unless it was
  #   already loaded by an ancestor class), before including/extending
  #   any modules, with the arguments
  #   and block provided to the call to Model.plugin.
  # * 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.
  # * A singleton method named configure, which takes a model, 
  #   additional arguments, and an optional block.  This is called
  #   every time the Model.plugin method is called, after including/extending
  #   any modules.
  module Plugins
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
sequel-3.46.0 lib/sequel/model/plugins.rb
sequel-3.45.0 lib/sequel/model/plugins.rb
sequel-3.44.0 lib/sequel/model/plugins.rb
sequel-3.43.0 lib/sequel/model/plugins.rb
sequel-3.42.0 lib/sequel/model/plugins.rb
sequel-3.41.0 lib/sequel/model/plugins.rb
sequel-3.40.0 lib/sequel/model/plugins.rb
sequel-3.39.0 lib/sequel/model/plugins.rb
sequel-3.38.0 lib/sequel/model/plugins.rb
sequel-3.37.0 lib/sequel/model/plugins.rb
sequel-3.36.1 lib/sequel/model/plugins.rb
sequel-3.36.0 lib/sequel/model/plugins.rb
sequel-3.35.0 lib/sequel/model/plugins.rb
sequel-3.34.1 lib/sequel/model/plugins.rb
sequel-3.34.0 lib/sequel/model/plugins.rb
sequel-3.33.0 lib/sequel/model/plugins.rb
sequel-3.32.0 lib/sequel/model/plugins.rb
sequel-3.31.0 lib/sequel/model/plugins.rb
sequel-3.30.0 lib/sequel/model/plugins.rb
sequel-3.29.0 lib/sequel/model/plugins.rb