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

require 'rails/generators' in import_generator.rb #33

Merged
merged 1 commit into from
Mar 27, 2014

Conversation

barelyknown
Copy link
Contributor

On Rails 4.1 (and I think earlier versions too) the import generator causes an exception when loaded because the rails/generators are not required.

/.../refills-0.0.1/lib/refills/import_generator.rb:2:in `module:Refills': uninitialized constant Rails::Generators (NameError)

This StackOverflow answer pointed me in the right direction.

@barelyknown barelyknown changed the title require 'rails/generators' in import_generator.rb' require 'rails/generators' in import_generator.rb Mar 27, 2014
@Magnus-G
Copy link
Contributor

Thanks for posting this! We'll take a look.

@calleluks
Copy link
Contributor

Both bug and fix confirmed. Ready to merge.

Magnus-G pushed a commit that referenced this pull request Mar 27, 2014
require 'rails/generators' in import_generator.rb
@Magnus-G Magnus-G merged commit 76796fb into thoughtbot:master Mar 27, 2014
@miclovich
Copy link

Has this been merged? The current bundle version doesn't require the file at the moment, so this error still persistent.

* refills (0.0.1)

It is fixed if you set the gem to the master github branch; perhaps updated the rubygem would help.

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 this pull request may close these issues.

None yet

4 participants