Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Rails::Generators::Base, using github master branch with Rails 5, puma 3.8.2 in Heroku, Ruby 2.4.0, heroku-16 stack, I receive error. #156

Open
ghost opened this issue Mar 16, 2017 · 3 comments · May be fixed by #170

Comments

@ghost
Copy link

ghost commented Mar 16, 2017

Using github master branch with Rails 5, Puma 3.8.2 in Heroku, Ruby 2.4.0, heroku-16 stack, I receive error.

Using latest version on Rubygems everything is OK.

The error is something related to "Rails::Generators::Base".

@JerryArns
Copy link

Probably not detailed enough issue, I'm using same everything and it works fine.

@fightingtheboss
Copy link

I encountered this error on Heroku as well, running pretty much the same stack. Turns out that for generators you need to explicitly require rails/generators. This goes way back to Rails 3.x apparently. Not sure why this behaviour doesn't seem consistent, but adding that require to the top of the generator files does indeed fix this issue on Heroku.

References:

I'll submit a PR to add the requires.

@ngty
Copy link

ngty commented Sep 14, 2017

Abit late to this. Anyway, i was bitten by this as well when deploying to heroku only. IMO, it doesn't make sense to require "rails/generators", since we don't need generators, especially in production. This is what i did eventually ngty@97fb32f

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

Successfully merging a pull request may close this issue.

3 participants