only require generators if using rails
Merge pull request #582 from neo4jrb/if_rails_defined

only require generators if using rails