motor-admin / motor-admin-rails

Low-code Admin panel and Business intelligence Rails engine. No DSL - configurable from the UI. Rails Admin, Active Admin, Blazer modern alternative.
https://app.getmotoradmin.com/demo/
MIT License
767 stars 77 forks source link

Adding resource actions #158

Closed alinazulfiqar closed 7 months ago

alinazulfiqar commented 7 months ago

I can't seem to create a resource action using a method call. Here is my model:

class Admin < ApplicationRecord

  def self.make_live
    self.update(updated_at: Time.now)
  end

end

When I go to settings and create a new action with type Method Call, I just get Not Found for the method. Not sure how to get motor.yml to pick up on a new action method?