Categories: None [Edit]

change_requests

https://rubygems.org/gems/change_requests
https://github.com/mediafinger/change_requests
ChangeRequests puts an approval gate in front of any action in your Rails application. Instead of running a guarded operation immediately, you record it as a change request — the service class, the method, and its arguments — and it stays pending until one ore more other actors approve. Nothing executes until someone other than the requester has signed off. Each request moves through a guarded lifecycle: pending, approved, successful or failed, with cancellation and comments available at any point before it reaches a final state. Every transition is a small command object that validates the actor's permissions and the current status before touching the record, so invalid transitions raise rather than silently succeed. Failed requests keep their approval and can be retried. The engine makes no assumptions about your user model. You tell it which controller methods return the current actor and their permissions, choose which routes to mount, and it stays out of the way of the rest of your app. Reference views ship with it for a working approvals screen, and every one of them can be replaced or overridden without forking the gem.

Total

Ranking: 120,225 of 197,051
Downloads: 6,194

Daily

Ranking: 25,450 of 197,010
Downloads: 7

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,792,501,566bundler
71,442,365,801activesupport
81,427,168,861rake
91,391,018,038json
291,024,975,886rspec
37845,130,767activerecord
47794,391,473railties
55753,518,357rubocop
61712,422,155activejob
63708,250,657zeitwerk
110475,180,083pg
124411,199,427rspec-rails
182298,640,310rubocop-rspec
217250,012,652irb
231238,352,669brakeman
356146,895,842bundler-audit
403134,841,059database_cleaner-active_record
1,09945,163,394rubocop-rake
1,24738,906,792amazing_print
18,412103,998archspec

Owners

#GravatarHandle
1iconmediafinger