├── .codeclimate.yml ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── .travis.yml ├── Appraisals ├── CHANGELOG.md ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── LICENSE.txt ├── README.md ├── RELEASE.md ├── Rakefile ├── ams_lazy_relationships.gemspec ├── bin ├── console └── setup ├── gemfiles ├── .bundle │ └── config ├── ams_0.10.0.gemfile ├── ams_0.10.0.rc4.gemfile ├── ams_0.10.10.gemfile ├── ams_0.10.2.gemfile ├── ams_0.10.3.gemfile ├── ams_0.10.8.gemfile ├── batch_loader_1.gemfile ├── batch_loader_2.gemfile ├── rails_6.gemfile └── rails_7.gemfile ├── lib ├── ams_lazy_relationships.rb └── ams_lazy_relationships │ ├── core.rb │ ├── core │ ├── evaluation.rb │ ├── lazy_dig_method.rb │ ├── lazy_relationship_meta.rb │ ├── lazy_relationship_method.rb │ └── relationship_wrapper_methods.rb │ ├── extensions.rb │ ├── extensions │ └── reflection.rb │ ├── loaders.rb │ ├── loaders │ ├── association.rb │ ├── base.rb │ ├── direct.rb │ ├── simple_belongs_to.rb │ └── simple_has_many.rb │ └── version.rb └── spec ├── ams_lazy_relationships_spec.rb ├── benchmark_spec.rb ├── core_spec.rb ├── loaders ├── association_spec.rb ├── direct_spec.rb ├── simple_belongs_to_spec.rb └── simple_has_many_spec.rb ├── spec_helper.rb └── support └── with_ar_models.rb /.codeclimate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/.codeclimate.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | --require spec_helper 4 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/.travis.yml -------------------------------------------------------------------------------- /Appraisals: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/Appraisals -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/LICENSE -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/README.md -------------------------------------------------------------------------------- /RELEASE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/RELEASE.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/Rakefile -------------------------------------------------------------------------------- /ams_lazy_relationships.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/ams_lazy_relationships.gemspec -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/bin/setup -------------------------------------------------------------------------------- /gemfiles/.bundle/config: -------------------------------------------------------------------------------- 1 | --- 2 | BUNDLE_RETRY: "1" 3 | -------------------------------------------------------------------------------- /gemfiles/ams_0.10.0.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/ams_0.10.0.gemfile -------------------------------------------------------------------------------- /gemfiles/ams_0.10.0.rc4.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/ams_0.10.0.rc4.gemfile -------------------------------------------------------------------------------- /gemfiles/ams_0.10.10.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/ams_0.10.10.gemfile -------------------------------------------------------------------------------- /gemfiles/ams_0.10.2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/ams_0.10.2.gemfile -------------------------------------------------------------------------------- /gemfiles/ams_0.10.3.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/ams_0.10.3.gemfile -------------------------------------------------------------------------------- /gemfiles/ams_0.10.8.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/ams_0.10.8.gemfile -------------------------------------------------------------------------------- /gemfiles/batch_loader_1.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/batch_loader_1.gemfile -------------------------------------------------------------------------------- /gemfiles/batch_loader_2.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/batch_loader_2.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_6.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/rails_6.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_7.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/gemfiles/rails_7.gemfile -------------------------------------------------------------------------------- /lib/ams_lazy_relationships.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/core.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/core.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/core/evaluation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/core/evaluation.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/core/lazy_dig_method.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/core/lazy_dig_method.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/core/lazy_relationship_meta.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/core/lazy_relationship_meta.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/core/lazy_relationship_method.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/core/lazy_relationship_method.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/core/relationship_wrapper_methods.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/core/relationship_wrapper_methods.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/extensions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/extensions.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/extensions/reflection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/extensions/reflection.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/loaders.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/loaders.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/loaders/association.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/loaders/association.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/loaders/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/loaders/base.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/loaders/direct.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/loaders/direct.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/loaders/simple_belongs_to.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/loaders/simple_belongs_to.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/loaders/simple_has_many.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/lib/ams_lazy_relationships/loaders/simple_has_many.rb -------------------------------------------------------------------------------- /lib/ams_lazy_relationships/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module AmsLazyRelationships 4 | VERSION = "0.4.0" 5 | end 6 | -------------------------------------------------------------------------------- /spec/ams_lazy_relationships_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/spec/ams_lazy_relationships_spec.rb -------------------------------------------------------------------------------- /spec/benchmark_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/spec/benchmark_spec.rb -------------------------------------------------------------------------------- /spec/core_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/spec/core_spec.rb -------------------------------------------------------------------------------- /spec/loaders/association_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/spec/loaders/association_spec.rb -------------------------------------------------------------------------------- /spec/loaders/direct_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/spec/loaders/direct_spec.rb -------------------------------------------------------------------------------- /spec/loaders/simple_belongs_to_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/spec/loaders/simple_belongs_to_spec.rb -------------------------------------------------------------------------------- /spec/loaders/simple_has_many_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/spec/loaders/simple_has_many_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/with_ar_models.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bajena/ams_lazy_relationships/HEAD/spec/support/with_ar_models.rb --------------------------------------------------------------------------------