shift plugin to rails 3