Sha256: 6360a7fbfb40e6bdb54c696991275370e836534f6bc9e52c93ed2c107e55fe8b

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

require "active_support/concern"

module Groupdate
  module Relation
    extend ActiveSupport::Concern

    included do
      attr_accessor :groupdate_values
    end

    def calculate(*args, &block)
      if groupdate_values
        Groupdate::Magic::Relation.process_result(self, super)
      else
        super
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
groupdate-4.0.1 lib/groupdate/relation.rb
groupdate-4.0.0 lib/groupdate/relation.rb