jobsworth
jobsworth copied to clipboard
undefined method `cache_sweeper'
I'm trying to call the annotate gem in order to update the documentation in the model. But I get this error:
NoMethodError: undefined method `cache_sweeper' for TagsController:Class
method_missing at org/jruby/RubyBasicObject.java:1606
<class:TagsController> at /Users/ari/svn/jobsworth/app/controllers/tags_controller.rb:3
<top> at /Users/ari/svn/jobsworth/app/controllers/tags_controller.rb:2
load at org/jruby/RubyKernel.java:962
block in load_file at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:457
new_constants_in at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:647
load_file at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:456
require_or_load at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:354
depend_on at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:317
require_dependency at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:233
block in (root) at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/railties-4.2.6/lib/rails/engine.rb:1
each at org/jruby/RubyArray.java:1593
block in eager_load! at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/railties-4.2.6/lib/rails/engine.rb:472
each at org/jruby/RubyArray.java:1593
eager_load! at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/railties-4.2.6/lib/rails/engine.rb:471
eager_load! at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/railties-4.2.6/lib/rails/engine.rb:469
eager_load! at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/railties-4.2.6/lib/rails/engine.rb:346
<top> at /Users/ari/.rbenv/versions/jruby-9.1.0.0/lib/ruby/gems/shared/gems/annotate-2.7.1/lib/annotate.rb:147
load at org/jruby/RubyKernel.java:962
<top> at /Users/ari/.rbenv/versions/jruby-9.1.0.0/bin/annotate:22
@ari I couldn't reproduce it. I execute two commands rails g annotate:install and take annotate models. And both of them passed successful.