thingspeak
thingspeak copied to clipboard
'show_comments_in_menu' has been removed from ActiveAdmin since 1.0.0
When I tried to load the schema, I encountered this error:
rake aborted!
NoMethodError: undefined method `show_comments_in_menu=' for #<ActiveAdmin::Application:0x007fbcaaa63970>
According to ActiveAdmin, this config has been removed. This repo should update the ActiveAdmin with the new config format or add the version dependencies to the gemfile.
For more information, have a look here: https://github.com/activeadmin/activeadmin/pull/4187/files
Quickfix
comment the line
config.show_comments_in_menu = false
found in active_admin.rb:124
+1 for a both a fix and version dependency. Trying to start a Rails server fails due to the same issue:
/opt/thingspeak/config/initializers/active_admin.rb:124:in `block in <top (required)>': undefined method `show_comments_in_menu=' for #<ActiveAdmin::Application:0x0055e065d61a00> (NoMethodError)
...
@peteroid - wouldn't the quick fix be to change it to config.comments_menu = false
. comments_menu
appears to be the new method name, according to the diff in 1-general-configuration.md
.