class InputOptionsValidatable include ActiveModel::Validations attr_accessor :input_type attr_accessor :input_options validates :input_options, input_options_presence: true end