add config for wrapper mappings. #642

Merged
merged 2 commits into from Sep 7, 2012

3 participants

@nashby

This should be a hash containing an input type as key and the wrapper
that will be used for all inputs with specified type

config.wrapper_mapings = { :string => :string_wrapper }

related to #636

@nashby

we need some @carlosantoniodasilva's love here :)

@carlosantoniodasilva carlosantoniodasilva commented on the diff Sep 6, 2012
...ple_form/templates/config/initializers/simple_form.rb
@@ -118,6 +118,10 @@
# matches the regexp as value.
# config.input_mappings = { /count/ => :integer }
+ # Custom wrappers for input types. This should be a hash containing an input
+ # type as key and the wrapper that will be used for all inputs with specified type
@carlosantoniodasilva
carlosantoniodasilva added a line comment Sep 6, 2012

Mind finishing with a . (and in lib/simple_form as well... very nitpicky, I know :P)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@carlosantoniodasilva

Looks great <3. Changelog and merge it!

Sorry for being sooo delayed. Seems that love is a bit scarce these days, so there it is: 💛💚❤️💙💜

nashby added some commits Aug 11, 2012
@nashby nashby add config for wrapper mappings.
This should be a hash containing an input type as key and the wrapper
that will be used for all inputs with specified type

config.wrapper_mapings = { :string => :string_wrapper }
4c5a5b9
@nashby nashby update CHANGELOG 44f1301
@nashby nashby merged commit 74beafc into plataformatec:master Sep 7, 2012

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment