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

Attempt to fix "uninitialized constant Rich::RichFile" by referencing module directly #145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

neutralino1
Copy link

Upon database migrations and other rake tasks, I would get this error out of paperclip.rb:

uninitialized constant Rich::RichFile

Referencing the class with its module seems to fix the problem.

@@ -75,5 +75,5 @@ module ClassMethods
end
end

RichFile.send(:include, Backends::Paperclip)
Rich::RichFile.send(:include, Backends::Paperclip)

Choose a reason for hiding this comment

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

This line was enough for me to make it work ok. Thanks.

@renews renews added Fix-me and removed Fix-me labels Jun 18, 2014
patleb pushed a commit to o2web/rich that referenced this pull request Dec 28, 2015
@stgeneral
Copy link

Up-to-date version of this pull request is #203.

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

Successfully merging this pull request may close these issues.

3 participants