Re: Sequel Model Validated
http://wikipedlla.com/sequel_model_validated Hi there, I just spend the last 20 hours putting the validations into a plugin while extending it. It now supports conditional validations, throws exceptions with errors assigned is api compatible to the quot;in-buildquot; validations. Further it allows you to hook in right before those validations take place. Just have a look at http://ruby-sequel.googlecode.com/svn/trunk/model_plugins/validated. This is my first gem so I'm happy about all feedback I get. Regards Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group, send email to sequel-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~--~~~~--~~--~--~---
Re: Sequel Model Validated
Man I'm dead by now... That's some really fantastic work Florian. Looking at your code I've changed my mind and I think it should be a plugin that provides more advanced validations, but maybe it could be called super_validated instead of validated? let me know what you think. best sharon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group, send email to sequel-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~--~~~~--~~--~--~---
Re: Sequel Model Validated
I've had a private exchange with Florian regarding model validations and the validated plugin, and I'd like to ask other people to join in on the discussion. As it is, this plugin completely replaces the validation functionality offered by sequel_model + assistance, and adds functionality missing in the original implementation, such as raising a validation error, validation hooks etc. Florian maintains that the validation functionality should be separate from sequel_model in order to keep sequel_model small and nimble. But anyway, sequel_model uses validation functionality provided by the assistance gem. I moved the validations code out of sequel_model and into assistance with the intention that it would be useful to share this kind of functionality with other libraries, such as DataMapper (Sam Smoot is indeed interested!) IMO it would be better to take Florian's code and integrate it into the assistance gem, instead of making it available as a plugin. For me, putting this kind of core functionality into a plugin creates confusion, and adds another step that people have to make (to load the plugin) before they can use validations. sharon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group, send email to sequel-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~--~~~~--~~--~--~---
Re: Sequel Model Validated
+1 for integrating it into assistance. ~Wayne --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group, send email to sequel-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~--~~~~--~~--~--~---
Re: Sequel Model Validated
+1 on gem instead of plugin. -angel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group, send email to sequel-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~--~~~~--~~--~--~---
Re: Sequel Model Validated
AWESOME! I noticed an inflector and timecalculation core-ext in the plugin directory, aren't we using the assistance gem for those two things now? Aman Gupta On Tue, Feb 5, 2008 at 5:37 PM, Florian Aßmann [EMAIL PROTECTED] wrote: Hi there, I just spend the last 20 hours putting the validations into a plugin while extending it. It now supports conditional validations, throws exceptions with errors assigned is api compatible to the in-build validations. Further it allows you to hook in right before those validations take place. Just have a look at http://ruby-sequel.googlecode.com/svn/trunk/model_plugins/validated. This is my first gem so I'm happy about all feedback I get. Regards Florian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sequel-talk group. To post to this group, send email to sequel-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~--~~~~--~~--~--~---