setting rails config and decorator