railsadminteam / rails_admin

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
MIT License
7.87k stars 2.25k forks source link

Can't share methods across custom actions #3608

Open dailson-igo opened 1 year ago

dailson-igo commented 1 year ago

Describe the bug How can I share methods between multiple custom actions created by me?

dsomel21 commented 1 year ago

What are you trying to do? Can you share more context or code?

dailson-igo commented 1 year ago

For example, writing a method that cleans strings in one place and using it in any Custom Actions I create. Or create some method that does any kind of processing on the data in a single place so that you can share it with any Custom Actions. Thanks.