{"id":18268427,"url":"https://github.com/coreyjs/rogue_filter","last_synced_at":"2025-08-09T17:07:44.483Z","repository":{"id":73450102,"uuid":"120224926","full_name":"coreyjs/rogue_filter","owner":"coreyjs","description":"Easy ActiveRecord filtering with search parameters","archived":false,"fork":false,"pushed_at":"2018-02-09T15:32:44.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T02:46:55.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coreyjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-04T21:29:52.000Z","updated_at":"2018-02-28T18:19:48.000Z","dependencies_parsed_at":"2023-02-24T04:15:32.669Z","dependency_job_id":null,"html_url":"https://github.com/coreyjs/rogue_filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coreyjs/rogue_filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreyjs%2Frogue_filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreyjs%2Frogue_filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreyjs%2Frogue_filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreyjs%2Frogue_filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coreyjs","download_url":"https://codeload.github.com/coreyjs/rogue_filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreyjs%2Frogue_filter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269606235,"owners_count":24446147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:31:29.188Z","updated_at":"2025-08-09T17:07:44.418Z","avatar_url":"https://github.com/coreyjs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/corey-rb/rogue_filter.svg?branch=master)](https://travis-ci.org/corey-rb/rogue_filter)\n\n\n# RogueFilter\nRogue Filter makes it easy to add scopes to ActiveRecord models.  This is helpful when chaining together multiple scopes on models that have many search parameters.\n\n## Usage\nmodel.rb\n```ruby\nclass Car \u003c ApplicationRecord\n  acts_as_filterable\n\n  scope :rogue_name, -\u003e (name) { where name: name }\nend\n```\n\nAll custom scopes that you want to get called must be prefixed with `rogue_`.\n\ncontroller.rb\n\n```ruby\nCar.filterable({name: 'Corey'})\n```\n* RogueFilter will define the class method `filterable` on all models that call `acts_as_filterable`\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rogue_filter'\n```\n\nAnd then execute:\n```bash\n$ bundle\n```\n\nOr install it yourself as:\n```bash\n$ gem install rogue_filter\n```\n\n## Contributing\nContribution directions go here.\n\n## License\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n## Mention\nThis was a learning project, idea was taken from https://www.justinweiss.com/articles/search-and-filter-rails-models-without-bloating-your-controller/ .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreyjs%2Frogue_filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoreyjs%2Frogue_filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreyjs%2Frogue_filter/lists"}