add rails support to ruby module