spiral-project / daybed

Form validation and data storage API
http://daybed.rtfd.org/
BSD 3-Clause "New" or "Revised" License
52 stars 8 forks source link

Accept an extra property to models definition to put other model related informations. #249

Closed Natim closed 10 years ago

Natim commented 10 years ago

Fix the Formbuilder error with submitButtonLabel

leplatrem commented 10 years ago

What do you think of a single optional attribute like extra, instead of allowing to store anything possible ?

Natim commented 10 years ago

Well what is the difference?

leplatrem commented 10 years ago

Well, it would keep models definitions tidy.

Plus I guess that validating an object with 4096 properties is a lot more costly than validating an object with 5 :)

Natim commented 10 years ago

I've added some documentation about the new extra fields.

leplatrem commented 10 years ago

Thanks for taking care of me and my narrow-minded feedbacks :)

Natim commented 10 years ago

@leplatrem Your are more than welcome, I like it :+1:

leplatrem commented 10 years ago

LGTM! You can merge when Travis approves ;)

almet commented 10 years ago

thanks :)