├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .tm_properties ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── activerecord-filter.gemspec ├── lib └── active_record │ ├── filter.rb │ └── filter │ ├── alias_tracker_extension.rb │ ├── filter_clause_factory.rb │ ├── predicate_builder_extension.rb │ ├── query_methods_extension.rb │ ├── relation_extension.rb │ ├── spawn_methods_extension.rb │ ├── unkown_filter_error.rb │ └── version.rb └── test ├── database.rb ├── factories.rb ├── filter_column_test ├── array_test.rb ├── boolean_test.rb ├── datetime_test.rb ├── geometry_test.rb ├── integer_test.rb ├── json_test.rb └── string_test.rb ├── filter_relationship_test ├── belongs_to_polymorphic_test.rb ├── belongs_to_test.rb ├── has_and_belongs_to_many_test.rb ├── has_many_test.rb ├── has_many_through_test.rb └── has_one_test.rb ├── filter_test.rb └── test_helper.rb /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | coverage 2 | *.gem 3 | .byebug_history 4 | Gemfile.lock 5 | -------------------------------------------------------------------------------- /.tm_properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/.tm_properties -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/Rakefile -------------------------------------------------------------------------------- /activerecord-filter.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/activerecord-filter.gemspec -------------------------------------------------------------------------------- /lib/active_record/filter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/lib/active_record/filter.rb -------------------------------------------------------------------------------- /lib/active_record/filter/alias_tracker_extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/lib/active_record/filter/alias_tracker_extension.rb -------------------------------------------------------------------------------- /lib/active_record/filter/filter_clause_factory.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/lib/active_record/filter/filter_clause_factory.rb -------------------------------------------------------------------------------- /lib/active_record/filter/predicate_builder_extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/lib/active_record/filter/predicate_builder_extension.rb -------------------------------------------------------------------------------- /lib/active_record/filter/query_methods_extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/lib/active_record/filter/query_methods_extension.rb -------------------------------------------------------------------------------- /lib/active_record/filter/relation_extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/lib/active_record/filter/relation_extension.rb -------------------------------------------------------------------------------- /lib/active_record/filter/spawn_methods_extension.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/lib/active_record/filter/spawn_methods_extension.rb -------------------------------------------------------------------------------- /lib/active_record/filter/unkown_filter_error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/lib/active_record/filter/unkown_filter_error.rb -------------------------------------------------------------------------------- /lib/active_record/filter/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/lib/active_record/filter/version.rb -------------------------------------------------------------------------------- /test/database.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/database.rb -------------------------------------------------------------------------------- /test/factories.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/factories.rb -------------------------------------------------------------------------------- /test/filter_column_test/array_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_column_test/array_test.rb -------------------------------------------------------------------------------- /test/filter_column_test/boolean_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_column_test/boolean_test.rb -------------------------------------------------------------------------------- /test/filter_column_test/datetime_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_column_test/datetime_test.rb -------------------------------------------------------------------------------- /test/filter_column_test/geometry_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_column_test/geometry_test.rb -------------------------------------------------------------------------------- /test/filter_column_test/integer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_column_test/integer_test.rb -------------------------------------------------------------------------------- /test/filter_column_test/json_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_column_test/json_test.rb -------------------------------------------------------------------------------- /test/filter_column_test/string_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_column_test/string_test.rb -------------------------------------------------------------------------------- /test/filter_relationship_test/belongs_to_polymorphic_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_relationship_test/belongs_to_polymorphic_test.rb -------------------------------------------------------------------------------- /test/filter_relationship_test/belongs_to_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_relationship_test/belongs_to_test.rb -------------------------------------------------------------------------------- /test/filter_relationship_test/has_and_belongs_to_many_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_relationship_test/has_and_belongs_to_many_test.rb -------------------------------------------------------------------------------- /test/filter_relationship_test/has_many_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_relationship_test/has_many_test.rb -------------------------------------------------------------------------------- /test/filter_relationship_test/has_many_through_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_relationship_test/has_many_through_test.rb -------------------------------------------------------------------------------- /test/filter_relationship_test/has_one_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_relationship_test/has_one_test.rb -------------------------------------------------------------------------------- /test/filter_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/filter_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malomalo/activerecord-filter/HEAD/test/test_helper.rb --------------------------------------------------------------------------------