Skip to content

Commit

Permalink
Fixes custom button method for things with subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Nov 1, 2017
1 parent aea2443 commit 13971bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/mixins/custom_actions_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 13971bc

Please sign in to comment.