Removing rails dependency