Sha256: 095eb384907900bfe878e4d2babe2a8f7555c5950350adf78ae6c0fdd1b813b6

Contents?: true

Size: 226 Bytes

Versions: 10

Compression:

Stored size: 226 Bytes

Contents

module CanTango::Adaptor
  module Relational
    def attribute_condition attribute, candidate
      { attribute.to_sym => candidate.send(attribute) }
    end
    alias_method :include_condition, :attribute_condition
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cantango-core-0.1.9.3 lib/cantango/adaptor/relational.rb
cantango-core-0.1.9.2 lib/cantango/adaptor/relational.rb
cantango-core-0.1.9.1 lib/cantango/adaptor/relational.rb
cantango-core-0.1.9 lib/cantango/adaptor/relational.rb
cantango-core-0.1.8 lib/cantango/adaptor/relational.rb
cantango-core-0.1.7 lib/cantango/adaptor/relational.rb
cantango-core-0.1.6 lib/cantango/adaptor/relational.rb
cantango-core-0.1.5 lib/cantango/adaptor/relational.rb
cantango-core-0.1.4 lib/cantango/adaptor/relational.rb
cantango-core-0.1.3 lib/cantango/adaptor/relational.rb