Sha256: 1ec380851e5f788865ee498af8b53a66d9c04dc44d8282a91cd0fd070fdf5b70

Contents?: true

Size: 789 Bytes

Versions: 8

Compression:

Stored size: 789 Bytes

Contents

module Mobility
=begin

Module loading Sequel-specific classes for Mobility models.

=end
  module Sequel
    autoload :BackendResetter,   "mobility/sequel/backend_resetter"
    autoload :ColumnChanges,     "mobility/sequel/column_changes"
    autoload :ModelTranslation,  "mobility/sequel/model_translation"
    autoload :StringTranslation, "mobility/sequel/string_translation"
    autoload :TextTranslation,   "mobility/sequel/text_translation"
    autoload :Translation,       "mobility/sequel/translation"

    def self.included(model_class)
      model_class.extend(ClassMethods)
    end

    module ClassMethods
      # @return [Sequel::Dataset] dataset extended with Mobility query methods.
      define_method ::Mobility.query_method do
        dataset
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mobility-0.1.20 lib/mobility/sequel.rb
mobility-0.1.19 lib/mobility/sequel.rb
mobility-0.1.18 lib/mobility/sequel.rb
mobility-0.1.17 lib/mobility/sequel.rb
mobility-0.1.16 lib/mobility/sequel.rb
mobility-0.1.15 lib/mobility/sequel.rb
mobility-0.1.14 lib/mobility/sequel.rb
mobility-0.1.13 lib/mobility/sequel.rb