Sha256: d8871c9eb4ba0ce48f351b0589b5d368d2a4811105858d1b5a92ad0a6d996abf

Contents?: true

Size: 497 Bytes

Versions: 4

Compression:

Stored size: 497 Bytes

Contents

module ActionView
  module Helpers
    module Tags # :nodoc:
      class TextArea < Base # :nodoc:
        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

4 entries across 4 versions & 2 rubygems

Version Path
challah-1.0.0 vendor/bundle/gems/actionpack-4.0.0/lib/action_view/helpers/tags/text_area.rb
actionpack-4.0.0 lib/action_view/helpers/tags/text_area.rb
actionpack-4.0.0.rc2 lib/action_view/helpers/tags/text_area.rb
actionpack-4.0.0.rc1 lib/action_view/helpers/tags/text_area.rb