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,206 of 197,085
Downloads: 6,206

Daily

Ranking: 22,657 of 197,066
Downloads: 8

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,796,160,121bundler
71,443,326,435activesupport
81,428,256,062rake
91,392,216,932json
291,025,379,194rspec
37845,746,438activerecord
47794,986,186railties
55754,099,562rubocop
61713,002,260activejob
63708,964,294zeitwerk
110475,509,226pg
124411,410,621rspec-rails
182298,861,227rubocop-rspec
217250,543,933irb
231238,624,075brakeman
356147,104,344bundler-audit
403134,943,589database_cleaner-active_record
1,09945,227,597rubocop-rake
1,24738,945,053amazing_print
17,967108,394archspec

Owners

#GravatarHandle
1iconmediafinger