Add snippet for Rails before_action