Sha256: 15beba7ac70e3cfce5d8defbf269205aff253cd202ea0860ffdb1338d7d198dd
Contents?: true
Size: 366 Bytes
Versions: 21
Compression:
Stored size: 366 Bytes
Contents
# frozen_string_literal: true module Shimmer module Form class SelectField < Field self.type = :select class << self def can_handle?(method) method.to_s.end_with?("_id") end end def render builder.collection_select method, collection, id_method, name_method, {}, options end end end end
Version data entries
21 entries across 21 versions & 1 rubygems