RailsAdminTokens
This Rails Admin action allows you to configure an action to be called on the object. The motivation behind this was to manually update oauth2 tokens but can be used to call any action on the object.
Usage
After adding this gem to your bundle, you can setup your rails_admin initializer to include tokens, like so:
# config/initializers/rails_admin.rb
config.actions do
dashboard # mandatory
index # mandatory
# ...
tokens do
only ['MyTargetUser']
refresh_method :my_custom_method
end
endCustomize your view:
# views/rails_admin/main/tokens.html.erbInstallation
Add this line to your application's Gemfile:
gem "rails_admin_tokens"And then execute:
$ bundleOr install it yourself as:
$ gem install rails_admin_tokensContributing
Contribution directions go here.
License
The gem is available as open source under the terms of the MIT License.