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

ActiveSupport::Memoizable deprecation warning in Rails 3.2 #4678

Closed
kirs opened this issue Jan 25, 2012 · 6 comments
Closed

ActiveSupport::Memoizable deprecation warning in Rails 3.2 #4678

kirs opened this issue Jan 25, 2012 · 6 comments

Comments

@kirs
Copy link
Member

kirs commented Jan 25, 2012

I just upgraded to 3.2 from 3.1, and found this line in log:

DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from <top (required)> at /Users/kirs/Sites/myapp/config/environment.rb:5)

The config/environment.rb contains only this:

# Load the rails application
require File.expand_path('../application', __FILE__)

# Initialize the rails application
Myapp::Application.initialize!

Is it something wrong with Myapp::Application.initialize!?

@sikachu
Copy link
Member

sikachu commented Jan 25, 2012

Nah, that probably mean there's something in your config/initializers, gem, or plugin that use Memoizable.

@kirs
Copy link
Member Author

kirs commented Jan 25, 2012

Thanks, it there any way to detect that gem?

@kirs kirs closed this as completed Jan 25, 2012
@rafaelfranca
Copy link
Member

@kirs are you using carrierwake? I got the same warning and it was caused by carrierwave 0.5.8

@kirs
Copy link
Member Author

kirs commented Jan 25, 2012

@rafaelfranca You are right. It seems to be that in 0.5.8 Carrierwave used Memoizable: in mount.rb and in carrierwave.rb. Current solution is to use it from git repo:

gem 'carrierwave', git: "git://github.com/jnicklas/carrierwave.git"

@mariovisic
Copy link
Contributor

Hi all

Using the git repo in a Gemfile works fine but i'm currently working on an engine so I have to define the dependency in the gemspec so can only use the last stable.

Any chance of a 0.5.9 release anytime soon?

@bonsaiben
Copy link
Contributor

marlovisic you should try raising the issue on the Carrierwave repo, better chance of getting a response there

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

No branches or pull requests

5 participants