added support for non-rails environments
added active-record initializer for non-rails environments
merged conflicts