Sha256: f8eb9fabaaece6ae531720bc821c706137202a675321355ed4eae56ab4faf18c

Contents?: true

Size: 240 Bytes

Versions: 3

Compression:

Stored size: 240 Bytes

Contents

module Aggro
  # Public: Mixin to turn a PORO into an Aggro query.
  module Query
    extend ActiveSupport::Concern
    include AttributeDSL

    def to_details
      { name: model_name.name, args: serialized_attributes }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aggro-0.0.4 lib/aggro/query.rb
aggro-0.0.3 lib/aggro/query.rb
aggro-0.0.2 lib/aggro/query.rb