1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't need to force size to nil

This commit is contained in:
Rafael Mendonça França 2012-05-16 21:33:49 -03:00
parent 08212956a7
commit 251b22f761
4 changed files with 0 additions and 10 deletions

View file

@ -5,7 +5,6 @@ module ActionView
def render
options = @options.stringify_keys
options["value"] = @options.fetch("value") { value(object).try(:to_date) }
options["size"] = nil
@options = options
super
end

View file

@ -2,10 +2,6 @@ module ActionView
module Helpers
module Tags
class FileField < TextField #:nodoc:
def render
@options.update(:size => nil)
super
end
end
end
end

View file

@ -2,10 +2,6 @@ module ActionView
module Helpers
module Tags
class HiddenField < TextField #:nodoc:
def render
@options.update(:size => nil)
super
end
end
end
end

View file

@ -4,7 +4,6 @@ module ActionView
class NumberField < TextField #:nodoc:
def render
options = @options.stringify_keys
options['size'] ||= nil
if range = options.delete("in") || options.delete("within")
options.update("min" => range.min, "max" => range.max)