Setting values in before filter rather than action itself