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:
parent
08212956a7
commit
251b22f761
4 changed files with 0 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue