-
Notifications
You must be signed in to change notification settings - Fork 75
Atividade5 - Equipe 2 #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…scription web e duplicated research project web
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, isso vai rescrever o save do controlador, mas com que intuito? associado a que feature? o CK e o FM não foram modificados?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eu estava com um problema com esse save, quando a chamada era feita no teste de controlador e sobrescrever o save retirando a chamada do método "render" funcionou, mas eu descobri depois como fazer funcionar sem o aspecto. Por isso, esse aspecto não está agregando nada. Eu criei e deixei para validar o entendimento sobre metaclasse. Acho melhor retirar, ou achar um propósito diferente pra ele.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Melhor retirar mesmo
On Jul 22, 2014, at 5:01 PM, vsnepomuceno notifications@github.com wrote:
In grails-app/controllers/rgms/researchProject/aspect/ResearchProjectControllerAspect.groovy:
@@ -0,0 +1,25 @@
+package rgms.researchProject.aspect
+
+import rgms.researchProject.ResearchProject
+import rgms.researchProject.ResearchProjectController
+
+/**
- * Created by Vilmar Nepomuceno on 10/07/2014.
- */
+class ResearchProjectControllerAspect {
+- def mc = ResearchProjectController.metaClass
- def init() {
Eu estava com um problema com esse save, quando a chamada era feita no teste de controlador e sobrescrever o save retirando a chamada do método "render" funcionou, mas eu descobri depois como fazer funcionar sem o aspecto. Por isso, esse aspecto não está agregando nada. Eu criei e deixei para validar o entendimento sobre metaclasse. Acho melhor retirar, ou achar um propósito diferente pra ele.mc.save = { ->—
Reply to this email directly or view it on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
Entrega da atividade 5.