Sha256: 7db28d0082d8f35f7a4ed29a395e19f0f344570386afa091a3621912a7a867fa
Contents?: true
Size: 429 Bytes
Versions: 16
Compression:
Stored size: 429 Bytes
Contents
module Formstrap class DateRangeView < ViewModel def start_options default_start_options.deep_merge(@start || {}) end def end_options default_end_options.deep_merge(@end || {}) end private def default_start_options keys = attributes - %i[start] to_h.slice(*keys) end def default_end_options keys = attributes - %i[end] to_h.slice(*keys) end end end
Version data entries
16 entries across 16 versions & 1 rubygems