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: 118,982 of 198,451
Downloads: 6,411

Daily

Ranking: 52,077 of 198,429
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,944,297,318bundler
61,476,982,732activesupport
81,463,583,217rake
91,433,175,517json
291,040,602,616rspec
37866,816,659activerecord
46815,571,146railties
55775,917,267rubocop
61732,680,267activejob
62731,918,882zeitwerk
110488,368,728pg
125420,995,311rspec-rails
179308,368,712rubocop-rspec
209270,412,372irb
229248,606,651brakeman
355153,890,436bundler-audit
398139,529,979database_cleaner-active_record
1,07747,740,260rubocop-rake
1,22241,062,167amazing_print
11,066290,144archspec

Owners

#GravatarHandle
1iconmediafinger