Sha256: c62b92096d2cdca3a9e3b77ab7c3fb5a37132ae54a04dc094137fa1404be131b

Contents?: true

Size: 319 Bytes

Versions: 17

Compression:

Stored size: 319 Bytes

Contents

module Mobility
=begin

Module loading Sequel-specific classes for Mobility models.

=end
  module Sequel
    def self.included(model_class)
      query_method = Module.new do
        define_method Mobility.query_method do
          dataset
        end
      end
      model_class.extend query_method
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mobility-0.5.1 lib/mobility/sequel.rb
mobility-0.5.0 lib/mobility/sequel.rb
mobility-0.4.3 lib/mobility/sequel.rb
mobility-0.4.2 lib/mobility/sequel.rb
mobility-0.4.1 lib/mobility/sequel.rb
mobility-0.4.0 lib/mobility/sequel.rb
mobility-0.3.6 lib/mobility/sequel.rb
mobility-0.3.5 lib/mobility/sequel.rb
mobility-0.3.4 lib/mobility/sequel.rb
mobility-0.3.3 lib/mobility/sequel.rb
mobility-0.3.2 lib/mobility/sequel.rb
mobility-0.3.1 lib/mobility/sequel.rb
mobility-0.3.0 lib/mobility/sequel.rb
mobility-0.2.3 lib/mobility/sequel.rb
mobility-0.2.2 lib/mobility/sequel.rb
mobility-0.2.1 lib/mobility/sequel.rb
mobility-0.2.0 lib/mobility/sequel.rb