We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1a08c3 commit b90b30fCopy full SHA for b90b30f
app/helpers/application_helper.rb
@@ -185,7 +185,10 @@ def plugin_available?(name)
185
# bedrock_config is referenced in the scope_controller and initialize on Rails startup
186
# this mehtod is used to check if a plugin is available for the current domain when rendering the navigations
187
# The server side part is done in the scope_controller
188
- return if @bedrock_config.plugin_hidden?(name.to_s)
+ # do not check if @bedrock_config is nil, this is the case for controllers inheriting not from ScopeController
189
+ unless @bedrock_config.nil?
190
+ return if @bedrock_config.plugin_hidden?(name.to_s)
191
+ end
192
self.respond_to?("#{name}_plugin".to_sym)
193
end
194
0 commit comments