Sha256: 9684af25e8aeb272ddc7b072bea1be4bed6c164cd426dc77a973f9721881d306

Contents?: true

Size: 757 Bytes

Versions: 11

Compression:

Stored size: 757 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.
      def i18n
        dataset
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mobility-0.1.12 lib/mobility/sequel.rb
mobility-0.1.11 lib/mobility/sequel.rb
mobility-0.1.10 lib/mobility/sequel.rb
mobility-0.1.7 lib/mobility/sequel.rb
mobility-0.1.6 lib/mobility/sequel.rb
mobility-0.1.5 lib/mobility/sequel.rb
mobility-0.1.4 lib/mobility/sequel.rb
mobility-0.1.3 lib/mobility/sequel.rb
mobility-0.1.2 lib/mobility/sequel.rb
mobility-0.1.1 lib/mobility/sequel.rb
mobility-0.1.0 lib/mobility/sequel.rb