{"id":18368772,"url":"https://github.com/greena13/update_request","last_synced_at":"2025-04-10T19:38:28.645Z","repository":{"id":59158724,"uuid":"49016293","full_name":"greena13/update_request","owner":"greena13","description":"Management system for resource update requests that require approval","archived":false,"fork":false,"pushed_at":"2018-03-01T17:57:49.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T08:35:49.034Z","etag":null,"topics":["management","rails-engine","update"],"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/greena13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-04T18:49:31.000Z","updated_at":"2018-03-01T17:54:20.000Z","dependencies_parsed_at":"2022-09-13T20:11:36.079Z","dependency_job_id":null,"html_url":"https://github.com/greena13/update_request","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greena13%2Fupdate_request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greena13%2Fupdate_request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greena13%2Fupdate_request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greena13%2Fupdate_request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greena13","download_url":"https://codeload.github.com/greena13/update_request/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281427,"owners_count":21077423,"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":["management","rails-engine","update"],"created_at":"2024-11-05T23:27:23.504Z","updated_at":"2025-04-10T19:38:28.622Z","avatar_url":"https://github.com/greena13.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UpdateRequest\n\nRails engine to provide approvable resource update requests\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'update_request'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install update_request\n    \nCopy the migrations to your Rails application\n\n    rake update_request:install:migrations\n        \nRun the migrations\n\n    rake db:migrate\n    \n## Usage\n\n### Creating an update request\n\n```ruby\n# User authentication and authorization code\n\nUserRequest::Request.new(\n  requester: user,\n  updateable: customer, \n  update_schema: { \n    id: 1, \n    name: \"New name\", \n    orders_attributes: [\n      {\n        id: 3,\n        deliver_notes: \"Revised deliver notes\"\n      }\n    ]\n  }\n)\n```\n\n### Applying an update\n\n```ruby\n# Admin user authentication and authorization code\n\nupdate_request.apply(admin_user)\n```\n\n### Retrieve a resource's update requests\n\n```ruby\nclass Customer \u003c ActiveRecord::Base\n  has_many :update_requests, as: :updateable, class_name: 'UpdateRequest::Request'\nend\n\n\ncustomer.update_requests\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreena13%2Fupdate_request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreena13%2Fupdate_request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreena13%2Fupdate_request/lists"}