Sha256: cbca66fadfeb7fb91322e0c180c3d5c2d603f6d749d3608c50aa4cf709aebcc7
Contents?: true
Size: 360 Bytes
Versions: 40
Compression:
Stored size: 360 Bytes
Contents
# frozen_string_literal: true class Forms::SearchDateInputComponent < ViewComponent::Base def initialize(label:, form:, field:) @label = label @field = field @form = form @from_field = from_field @to_field = to_field end def from_field "#{@field}_from_date".to_sym end def to_field "#{@field}_to_date".to_sym end end
Version data entries
40 entries across 40 versions & 1 rubygems