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?
I can't seem to create a resource action using a method call. Here is my model:
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?