Removed before_action in favour of backwards compatible before_filter