Removing rails dependency in favor of activesupport