lib/faalis/dashboard/dsl/base.rb in faalis-2.0.0.rc3 vs lib/faalis/dashboard/dsl/base.rb in faalis-2.0.0.rc4
- old
+ new
@@ -88,9 +88,10 @@
# `class`: classes of the button.
# `icon_class`: font awesome icon to use in button.
def action_button(**options)
@action_buttons ||= []
@action_buttons << options
+ @action_buttons.uniq!
end
private
# Replace foreign key names with their reflection names