Sha256: 6579e51f70034a748545d27af182505596fa76d43f3d9d46051b25493f5a8c49
Contents?: true
Size: 583 Bytes
Versions: 20
Compression:
Stored size: 583 Bytes
Contents
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(object) }, options) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems