tomichj / invitation

A Rails gem that can send 'scoped' invitations
MIT License
77 stars 28 forks source link

The generate can't run in a project without a User model #3

Closed augustocbx closed 8 years ago

augustocbx commented 8 years ago

$ rails generate invitation:install --model "Security::User" invitation-817d25d87275/lib/invitation/configuration.rb:49:in 'initialize': undefined local variable or method 'configuration' for #<Invitation::Configuration:0x007fbe878c7948> (NameError) from /Users/augustocbx/.rvm/gems/ruby-2.3.1@grimes/bundler/gems/invitation-817d25d87275/lib/invitation/configuration.rb:71:in 'new' from /Users/augustocbx/.rvm/gems/ruby-2.3.1@grimes/bundler/gems/invitation-817d25d87275/lib/invitation/configuration.rb:71:in 'configuration' from /Users/augustocbx/.rvm/gems/ruby-2.3.1@grimes/bundler/gems/invitation-817d25d87275/lib/invitation/configuration.rb:79:in 'configure'

augustocbx commented 8 years ago

This bug was corrected checking if the class exists, in the line where the error happens.