Sha256: 9fe1fb88de426b0e1d1c6e53a748b4420079fc96b0760fdecf7b180b731efdf4
Contents?: true
Size: 609 Bytes
Versions: 4
Compression:
Stored size: 609 Bytes
Contents
# frozen_string_literal: true module Goldiloader class ScopeInfo attr_reader :scope def initialize(scope) @scope = scope end def offset? scope.offset_value.present? end def limit? scope.limit_value.present? end def auto_include? scope.auto_include_value end def from? if Goldiloader::Compatibility.rails_4? scope.from_value.present? else scope.from_clause.present? end end def group? scope.group_values.present? end def order? scope.order_values.present? end end end
Version data entries
4 entries across 4 versions & 1 rubygems