module Graphql::Dashboard::Installable
Public Class Methods
Source
# File lib/graphql/dashboard/installable.rb, line 6 def self.included(child_module) child_module.before_action(:check_installed) end
Public Instance Methods
Source
# File lib/graphql/dashboard/installable.rb, line 14 def check_installed if !feature_installed? @component_header_html = self.class::INSTALLABLE_COMPONENT_HEADER_HTML @component_message_html = self.class::INSTALLABLE_COMPONENT_MESSAGE_HTML render "graphql/dashboard/not_installed" end end
Source
# File lib/graphql/dashboard/installable.rb, line 10 def feature_installed? raise "Implement #{self.class}#feature_installed? to check whether this should render `not_installed` or not." end