Update with macaron

This commit is contained in:
Unknwon 2014-10-06 19:12:52 -04:00
parent 64c68220d2
commit 1e1f9e7166
4 changed files with 10 additions and 8 deletions

View file

@ -29,7 +29,6 @@ import (
// Context represents context of a request.
type Context struct {
*macaron.Context
i18n.Locale
Cache cache.Cache
csrf csrf.CSRF
Flash *session.Flash
@ -162,7 +161,6 @@ func Contexter() macaron.Handler {
return func(c *macaron.Context, l i18n.Locale, cache cache.Cache, sess session.Store, f *session.Flash, x csrf.CSRF) {
ctx := &Context{
Context: c,
Locale: l,
Cache: cache,
csrf: x,
Flash: f,