From 13971bcfe5c2b9f554f39abaffe36327bc456ba4 Mon Sep 17 00:00:00 2001 From: d-m-u Date: Wed, 1 Nov 2017 14:12:04 -0400 Subject: [PATCH] Fixes custom button method for things with subclasses --- app/models/mixins/custom_actions_mixin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mixins/custom_actions_mixin.rb b/app/models/mixins/custom_actions_mixin.rb index 615d0710444..21b66279fd1 100644 --- a/app/models/mixins/custom_actions_mixin.rb +++ b/app/models/mixins/custom_actions_mixin.rb @@ -48,6 +48,6 @@ def serialize_button(button) end def generic_custom_buttons - CustomButton.buttons_for(self.class.name) + CustomButton.buttons_for(self.class.base_model.name) end end