add before filter to assets controller