{"id":15288799,"url":"https://github.com/irvanfza/administrate-field-paper_trail","last_synced_at":"2025-04-13T08:11:11.926Z","repository":{"id":65208127,"uuid":"587718143","full_name":"IrvanFza/administrate-field-paper_trail","owner":"IrvanFza","description":"An Administrate plugin to show record change histories from PaperTrail","archived":false,"fork":false,"pushed_at":"2024-02-01T09:14:04.000Z","size":6,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T00:35:28.455Z","etag":null,"topics":["administrate","administrate-field","paper-trail","ruby","ruby-gem","ruby-on-rails"],"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/IrvanFza.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"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":"2023-01-11T12:26:10.000Z","updated_at":"2023-11-07T04:42:18.000Z","dependencies_parsed_at":"2024-10-23T01:04:28.983Z","dependency_job_id":null,"html_url":"https://github.com/IrvanFza/administrate-field-paper_trail","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"06fbe04367dff49c4c0dfc29d82b194fae33e7b3"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IrvanFza%2Fadministrate-field-paper_trail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IrvanFza%2Fadministrate-field-paper_trail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IrvanFza%2Fadministrate-field-paper_trail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IrvanFza%2Fadministrate-field-paper_trail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IrvanFza","download_url":"https://codeload.github.com/IrvanFza/administrate-field-paper_trail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681491,"owners_count":21144700,"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":["administrate","administrate-field","paper-trail","ruby","ruby-gem","ruby-on-rails"],"created_at":"2024-09-30T15:53:14.538Z","updated_at":"2025-04-13T08:11:11.894Z","avatar_url":"https://github.com/IrvanFza.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AdministrateFieldPaperTrail\n\n![Gem](https://img.shields.io/gem/v/administrate-field-paper_trail.svg)\n![CI](https://github.com/IrvanFza/administrate-field-paper_trail/workflows/CI/badge.svg)\n\nAn [Administrate](https://github.com/thoughtbot/administrate/) plugin to show record change histories from [PaperTrail](https://github.com/paper-trail-gem/paper_trail).\n\n## Requirements\n\n- Ruby on Rails version \u003e= 5.0\n- Administrate version \u003e= 0.2.2\n- PaperTrail version \u003e= 2.7.2\n\n## Installation\n\nMake sure you already setup [PaperTrail](https://github.com/paper-trail-gem/paper_trail#1b-installation) properly in your project.\nAdd `administrate-field-paper_trail` to your Gemfile:\n\n```ruby\ngem 'administrate-field-paper_trail'\n```\n\nAnd then execute:\n```\n$ bundle install\n```\n\n## Usage\n\nAdd to your `UserDashboard`:\n\n```ruby\nATTRIBUTE_TYPES = {\n  changeset: Field::PaperTrail.with_options(excluded_attributes: %w[created_at updated_at]),\n}\n```\n\nThe `excluded_attributes` option takes an array of string of the attributes you want to exclude from the result. Default excluded attributes are: `id`, `created_at`, and `updated_at`.\n\nThen show the field in your show page like so:\n\n```ruby\nSHOW_PAGE_ATTRIBUTES = %i[\n  changeset\n]\n```\n\nCurrently, only support to show changes in the show page. Contribution will be appreciated.\n\n## To Do\n\n- [x] Show record changes information in the show page\n- [ ] Show count of changes of each records in the index page\n- [ ] Add i18n support for the result message\n- [ ] Add i18n support for date/time value\n\n## Contributing\n\n1. Contribution are welcome (codes, suggestions, and bugs)\n2. Please test your code: `bundle exec rspec`\n3. Please document your code\n4. Bug reports and pull requests are welcome on GitHub at https://github.com/IrvanFza/administrate-field-paper_trail\n\n## License\n\n[MIT License](https://github.com/IrvanFza/administrate-field-paper_trail/blob/master/LICENSE.md)\n\n---\nBased on the [Administrate::Field::Image](https://github.com/thoughtbot/administrate-field-image) template\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firvanfza%2Fadministrate-field-paper_trail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firvanfza%2Fadministrate-field-paper_trail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firvanfza%2Fadministrate-field-paper_trail/lists"}