1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

Merge pull request #1246 from bli/patch-1

Add map_type for Hidden input
This commit is contained in:
Vasiliy Ermolovich 2015-04-30 11:12:15 +03:00
commit b407771548

View file

@ -30,6 +30,7 @@ module SimpleForm
map_type :date, :time, :datetime, to: SimpleForm::Inputs::DateTimeInput
map_type :country, :time_zone, to: SimpleForm::Inputs::PriorityInput
map_type :boolean, to: SimpleForm::Inputs::BooleanInput
map_type :hidden, to: SimpleForm::Inputs::HiddenInput
def self.discovery_cache
@discovery_cache ||= {}