{"id":20231644,"url":"https://github.com/bhuga/peek-activerecord","last_synced_at":"2025-08-13T19:53:45.940Z","repository":{"id":56887736,"uuid":"95591013","full_name":"bhuga/peek-activerecord","owner":"bhuga","description":"peek plugin to display AR queries run during a page","archived":false,"fork":false,"pushed_at":"2017-08-29T13:35:37.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-25T00:01:35.583Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bhuga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-27T18:58:40.000Z","updated_at":"2017-08-21T19:07:21.000Z","dependencies_parsed_at":"2022-08-21T00:20:59.351Z","dependency_job_id":null,"html_url":"https://github.com/bhuga/peek-activerecord","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhuga%2Fpeek-activerecord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhuga%2Fpeek-activerecord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhuga%2Fpeek-activerecord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhuga%2Fpeek-activerecord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhuga","download_url":"https://codeload.github.com/bhuga/peek-activerecord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248266449,"owners_count":21075165,"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","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-14T07:48:55.397Z","updated_at":"2025-04-10T18:06:35.158Z","avatar_url":"https://github.com/bhuga.png","language":"Ruby","readme":"# Peek::Activerecord\n\nThis plugin displays the ActiveRecord queries run during a request.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'peek-activerecord'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install peek-activerecord\n\nIn `/app/assets/stlyesheets/application.scss`:\n\n```\n = require peek/views/activerecord\n = require peek/views/activerecord/pygments\n```\n\nIn `/app/assets/javascripts/application.coffee`:\n\n```\n#= require peek/views/activerecord\n```\n\nThis works the same way in `application.js` if you have that instead, just put\nthe require in a comment.\n\n## Usage\n\nAny page with `peek_enabled?` will have a new `ActiveRecord Queries` link. Click\non it to see your queries:\n\n![](https://github-slack.s3.amazonaws.com/monosnap/Your_Builds_2017-06-27_14-00-43.png)\n\nControllers have a new method, `peek_activerecord_enabled?`, that you can\noverwrite to separate AR enabled-ness from peek enabled-ness if you like.\n\n## Development\n\nThere's no good development harness yet, sorry. Contributions are welcome if\nyou're up to it.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/bhuga/peek-activerecord. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Peek::Activerecord project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/bhuga/peek-activerecord/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhuga%2Fpeek-activerecord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhuga%2Fpeek-activerecord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhuga%2Fpeek-activerecord/lists"}