You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I copied the auto_annotate_models.rake file from a rails project, over to our sinatra app, set the model_dir in it to app/rds_models and tried annotate and annotate --model-dir app/rds_models. Both of these led to
I, [2014-07-10T15:18:34.444536 #5473] INFO -- : development
/Users/karthikt/.rvm/gems/ruby-2.1.2/gems/annotate-2.6.5/lib/annotate.rb:100:in `eager_load': undefined method `version' for Rails:Module (NoMethodError)
from /Users/karthikt/.rvm/gems/ruby-2.1.2/gems/annotate-2.6.5/bin/annotate:155:in `<top (required)>'
from /Users/karthikt/.rvm/gems/ruby-2.1.2/bin/annotate:23:in `load'
from /Users/karthikt/.rvm/gems/ruby-2.1.2/bin/annotate:23:in `<main>'
from /Users/karthikt/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
from /Users/karthikt/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
I had to do model_dir=app/rds_models rake annotate_models to finally get it working. This is from going through the code, and seeing the ENV[] values being used to initialize the options.
The text was updated successfully, but these errors were encountered:
I copied the
auto_annotate_models.rake
file from a rails project, over to our sinatra app, set themodel_dir
in it toapp/rds_models
and triedannotate
andannotate --model-dir app/rds_models
. Both of these led toI had to do
model_dir=app/rds_models rake annotate_models
to finally get it working. This is from going through the code, and seeing theENV[]
values being used to initialize the options.The text was updated successfully, but these errors were encountered: