configuration class and generator for rails app