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: 119,483 of 197,744
Downloads: 6,315

Daily

Ranking: 25,303 of 197,724
Downloads: 8

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,863,547,421bundler
61,458,386,728activesupport
81,444,561,272rake
91,410,138,612json
291,032,112,907rspec
37855,219,427activerecord
47804,253,154railties
55763,949,454rubocop
61721,863,659activejob
62719,652,724zeitwerk
110481,357,989pg
124415,734,944rspec-rails
181303,246,954rubocop-rspec
213259,290,434irb
231243,259,865brakeman
355150,201,828bundler-audit
399137,047,696database_cleaner-active_record
1,08846,350,691rubocop-rake
1,23640,012,857amazing_print
13,639184,503archspec

Owners

#GravatarHandle
1iconmediafinger