This is not the right approach. You shouldn't have a complete copy of a CE model in your app. Your app's version of the CE model should only include methods that you are adding or methods from the CE model that are being overridden. Desert takes care of mixing the two together, and methods in your app's version take precedence. A better approach to overriding validations is the one I described above (basically overriding the validate method).
On Thu, Oct 8, 2009 at 5:31 AM, David K <[email protected]> wrote: > > I solved the double validations problem by only having one copy of > each model file > - in app/models for the models changed from standard CE > - in vendor/plugins/community_engine/app/models for the ones that > remain default. > > This of course only works if you include all of the model code in your > replacement > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
