eBooru/app/inputs/button_select_input.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

14 lines
325 B
Ruby

# frozen_string_literal: true
# This behaves just like the inherited input, but adds
# a css class for custom styling. Nothing more, nothing less.
class ButtonSelectInput < SimpleForm::Inputs::CollectionRadioButtonsInput
def input_type
"radio_buttons"
end
def input_class
"collection-radio-buttons"
end
end