Sha256: 7057635c3f50a2edda5e23a758cdc9e9cddc63fa0fae053a63b5326f54124d6e
Contents?: true
Size: 606 Bytes
Versions: 249
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true require "action_view/helpers/tags/placeholderable" module ActionView module Helpers module Tags # :nodoc: class TextArea < Base # :nodoc: include Placeholderable def render options = @options.stringify_keys add_default_name_and_id(options) if size = options.delete("size") options["cols"], options["rows"] = size.split("x") if size.respond_to?(:split) end content_tag("textarea", options.delete("value") { value_before_type_cast }, options) end end end end end
Version data entries
249 entries across 236 versions & 16 rubygems