Rails class setup