lib/goldiloader/association_info.rb in goldiloader-2.1.1 vs lib/goldiloader/association_info.rb in goldiloader-2.1.2

- old
+ new

@@ -7,10 +7,14 @@ @association = association end delegate :association_scope, :reflection, to: :@association + def has_one? + reflection.has_one? + end + def offset? association_scope && association_scope.offset_value.present? end def limit? @@ -29,9 +33,13 @@ end end def group? association_scope && association_scope.group_values.present? + end + + def order? + association_scope && association_scope.order_values.present? end def instance_dependent? reflection.scope.present? && reflection.scope.arity > 0 end