Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using inside Rails Engine #9

Open
plagi opened this issue Aug 3, 2015 · 4 comments
Open

Error when using inside Rails Engine #9

plagi opened this issue Aug 3, 2015 · 4 comments

Comments

@plagi
Copy link

plagi commented Aug 3, 2015

% bundle exec rails generate regressor:model 1 ↵ ✹ ✭
/Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/regressor-0.4.0/lib/generators/regressor/model_generator.rb:8:in create_regression_files': undefined methodeager_load!' for nil:NilClass (NoMethodError)
from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/thor-0.19.1/lib/thor/command.rb:27:in run' from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/thor-0.19.1/lib/thor/invocation.rb:126:ininvoke_command'
from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/thor-0.19.1/lib/thor/invocation.rb:133:in block in invoke_all' from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/thor-0.19.1/lib/thor/invocation.rb:133:ineach'
from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/thor-0.19.1/lib/thor/invocation.rb:133:in map' from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/thor-0.19.1/lib/thor/invocation.rb:133:ininvoke_all'
from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/thor-0.19.1/lib/thor/group.rb:232:in dispatch' from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/thor-0.19.1/lib/thor/base.rb:440:instart'
from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/railties-4.1.10/lib/rails/generators.rb:157:in invoke' from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/railties-4.1.10/lib/rails/commands/generate.rb:11:in<top (required)>'
from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/railties-4.1.10/lib/rails/engine/commands.rb:19:in require' from /Users/plagi/.rvm/gems/ruby-2.1.2@leadhacker/gems/railties-4.1.10/lib/rails/engine/commands.rb:19:in<top (required)>'
from bin/rails:12:in require' from bin/rails:12:in

'

@erwinjunker
Copy link
Owner

Hi plagi, can you say which rails version do you use? That looks pretty strange. Can you test the following command in the rails console?

Rails.application.eager_load!

@plagi
Copy link
Author

plagi commented Aug 3, 2015

Hey,

This happens when developing inside rails engine.
Rails version 4.2.12

С уважением,
Алексей

3 авг. 2015 г., в 20:27, Erwin Schens [email protected] написал(а):

Hi plagi, can you say which rails version do you use? That looks pretty strange. Can you test the following command in the rails console?

Rails.application.eager_load!

Reply to this email directly or view it on GitHub.

@artschie1337
Copy link

Do you use ActiveRecord or Mongoid?

@plagi
Copy link
Author

plagi commented Aug 3, 2015

active_record

С уважением,
Алексей

3 авг. 2015 г., в 23:01, artschie1337 [email protected] написал(а):

Do you use ActiveRecord or Mongoid?


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants