File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ public Object eval(ActionContext context) {
4141 return context ;
4242 }
4343 },
44+ new ActionViewVarDef ("_mailer" , MailerContext .class ) {
45+ @ Override
46+ public Object eval (ActionContext context ) {
47+ return null ;
48+ }
49+ },
4450 new ActionViewVarDef ("_session" , H .Session .class ) {
4551 @ Override
4652 public Object eval (ActionContext context ) {
@@ -74,6 +80,12 @@ public Object eval(MailerContext context) {
7480 return context ;
7581 }
7682 },
83+ new MailerViewVarDef ("_action" , ActionContext .class ) {
84+ @ Override
85+ public Object eval (MailerContext context ) {
86+ return null ;
87+ }
88+ },
7789 new MailerViewVarDef ("_from" , InternetAddress .class ) {
7890 @ Override
7991 public Object eval (MailerContext context ) {
Original file line number Diff line number Diff line change 44@args act.util.ActError _error
55@{
66act.app.SourceInfo sourceInfo = _error.sourceInfo();
7- act.route.RouteInfo req = act.route.RouteInfo.of(_ctx );
7+ act.route.RouteInfo req = act.route.RouteInfo.of(_action );
88List< String > stackTrace = _error.stackTrace();
99 }
1010
Original file line number Diff line number Diff line change 3737
3838@import act.route.*
3939@{
40- List< RouteInfo > routes = _ctx .router().debug();
41- act.route.RouteInfo req = RouteInfo.of(_ctx );
40+ List< RouteInfo > routes = _action .router().debug();
41+ act.route.RouteInfo req = RouteInfo.of(_action );
4242}
4343
4444@def tr(RouteInfo r, String parity) {
Original file line number Diff line number Diff line change 11@extends(errorPage, header: "500 Internal Error")
22
33@{
4- act.route.RouteInfo routeInfo = act.route.RouteInfo.of(_ctx );
4+ act.route.RouteInfo routeInfo = act.route.RouteInfo.of(_action );
55 }
66
77
Original file line number Diff line number Diff line change 1818if (_error instanceof act.view.RythmError) {
1919templateSourceInfo = ((act.view.RythmError) actError).templateSourceInfo();
2020}
21- act.route.RouteInfo routeInfo = act.route.RouteInfo.of(_ctx) ;
21+ act.route.RouteInfo routeInfo = null != _action ? act.route.RouteInfo.of(_action) : null ;
2222List< String > stackTrace = actError.stackTrace();
2323 }
2424
You can’t perform that action at this time.
0 commit comments