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

fix uninitialized constant CarrierWave::Mount::Mounter #11

Closed
wants to merge 2 commits into from
Closed

fix uninitialized constant CarrierWave::Mount::Mounter #11

wants to merge 2 commits into from

Conversation

oni7uka
Copy link

@oni7uka oni7uka commented Mar 24, 2016

fix: #10
change Carrierwave::Mount::Mounter to Carrierwave::Mounter

@@ -48,7 +48,7 @@ def clear_#{column}

def _mounter(column)
@_mounters ||= {}
@_mounters[column] ||= CarrierWave::Mount::Mounter.new(self, column)
@_mounters[column] ||= CarrierWave::Mounter.new(self, column)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this was changed here:

carrierwaveuploader/carrierwave@1ac1268

The carrierwave gem seems to be encouraging people to use the master branch unless they're using Rails 3, but they README mentions something about a forthcoming 1.0 release. Their most recent publication to rubygems was 0.10.0 which was published Feb 26th, 2014 and that commit is from Oct 16, 2014.

Perhaps this could be something like:

mounter_class = defined?(CarrierWave::Mounter) ? CarrierWave::Mounter : CarrierWave::Mount::Mounter
@_mounters[column] ||= mounter_class.new(self, column)

@cheerfulstoic
Copy link
Contributor

Sorry I missed this! I came back to this project after seeing #12 and it seems like that actually may fix the issue. If not, please let me know

@cheerfulstoic
Copy link
Contributor

I don't have permission to release a new version of the gem, so while I wait on that you can watch #12 for updates

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

Successfully merging this pull request may close these issues.

NameError: uninitialized constant CarrierWave::Mount::Mounter
2 participants