Module: Graphql::Dashboard::Installable

Instance Method Summary collapse

Instance Method Details

#check_installedObject



13
14
15
16
17
18
19
# File 'lib/graphql/dashboard/installable.rb', line 13

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

#feature_installed?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/graphql/dashboard/installable.rb', line 9

def feature_installed?
  raise "Implement #{self.class}#feature_installed? to check whether this should render `not_installed` or not."
end