Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7518 (new defect)

Opened 1 year ago

Last modified 1 year ago

action_controller/caching Needs to Load active_support

Reported by: Theory Assigned to: core
Priority: normal Milestone: 1.2.7
Component: ActionPack Version: edge
Severity: normal Keywords: ActionController, ActiveSupport, ActionController::Caching
Cc:

Description

When starting rails 1.2.2 with memcached I get this exception:

/opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_controller/caching.rb:392: undefined method `deprecate' for ActionController::Caching::Fragments:Module (NoMethodError)
        from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /opt/local/lib/ruby/gems/1.8/gems/mem_cache_fragment_store-1.0.1/lib/mem_cache_fragment_store.rb:2
        from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:33:in `gem_original_require'
        from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:33:in `require'
        from /Library/Rails/stikkit_staging/releases/20070210010052/config/environment.rb:46
        from /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:41:in `run'
        from /Library/Rails/stikkit_staging/releases/20070210010052/config/environment.rb:22
         ... 11 levels...
        from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0/lib/mongrel/command.rb:211:in `run'
        from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0/bin/mongrel_rails:243
        from /opt/local/bin/mongrel_rails:18:in `load'
        from /opt/local/bin/mongrel_rails:18

The solution seems to be to add

require 'active_support'

to the top of action_controller/caching.rb.