@@ -72,73 +72,73 @@ def human_attribute_name
7272 # field(:birthday).date
7373 # field(:secret).hidden(value: "token123")
7474 # field(:gender).radio("male", id: "user_gender_male")
75- def text ( *, **, & )
76- input ( *, **, type : :text , & )
75+ def text ( *, **)
76+ input ( *, **, type : :text )
7777 end
7878
79- def hidden ( *, **, & )
80- input ( *, **, type : :hidden , & )
79+ def hidden ( *, **)
80+ input ( *, **, type : :hidden )
8181 end
8282
83- def password ( *, **, & )
84- input ( *, **, type : :password , & )
83+ def password ( *, **)
84+ input ( *, **, type : :password )
8585 end
8686
87- def email ( *, **, & )
88- input ( *, **, type : :email , & )
87+ def email ( *, **)
88+ input ( *, **, type : :email )
8989 end
9090
91- def url ( *, **, & )
92- input ( *, **, type : :url , & )
91+ def url ( *, **)
92+ input ( *, **, type : :url )
9393 end
9494
95- def tel ( *, **, & )
96- input ( *, **, type : :tel , & )
95+ def tel ( *, **)
96+ input ( *, **, type : :tel )
9797 end
9898 alias_method :phone , :tel
9999
100- def number ( *, **, & )
101- input ( *, **, type : :number , & )
100+ def number ( *, **)
101+ input ( *, **, type : :number )
102102 end
103103
104- def range ( *, **, & )
105- input ( *, **, type : :range , & )
104+ def range ( *, **)
105+ input ( *, **, type : :range )
106106 end
107107
108- def date ( *, **, & )
109- input ( *, **, type : :date , & )
108+ def date ( *, **)
109+ input ( *, **, type : :date )
110110 end
111111
112- def time ( *, **, & )
113- input ( *, **, type : :time , & )
112+ def time ( *, **)
113+ input ( *, **, type : :time )
114114 end
115115
116- def datetime ( *, **, & )
117- input ( *, **, type : :"datetime-local" , & )
116+ def datetime ( *, **)
117+ input ( *, **, type : :"datetime-local" )
118118 end
119119
120- def month ( *, **, & )
121- input ( *, **, type : :month , & )
120+ def month ( *, **)
121+ input ( *, **, type : :month )
122122 end
123123
124- def week ( *, **, & )
125- input ( *, **, type : :week , & )
124+ def week ( *, **)
125+ input ( *, **, type : :week )
126126 end
127127
128- def color ( *, **, & )
129- input ( *, **, type : :color , & )
128+ def color ( *, **)
129+ input ( *, **, type : :color )
130130 end
131131
132- def search ( *, **, & )
133- input ( *, **, type : :search , & )
132+ def search ( *, **)
133+ input ( *, **, type : :search )
134134 end
135135
136- def file ( *, **, & )
137- input ( *, **, type : :file , & )
136+ def file ( *, **)
137+ input ( *, **, type : :file )
138138 end
139139
140- def radio ( value , *, **, & )
141- input ( *, **, type : :radio , value : value , & )
140+ def radio ( value , *, **)
141+ input ( *, **, type : :radio , value : value )
142142 end
143143
144144 # Rails compatibility aliases
0 commit comments