<NME> tabulous.rb
<BEF> module Tabulous
  class << self
    def setup(&block)
      Dsl::Setup.process(&block)
    end
  end
end

  def self.render_tabs(view)
    initialize_tabs(view)
    # return unless tab_defined?(view)

<MSG> Add the 'render_tabs_if_no_tab_found' option to the Options class

When render_tabs_if_no_tab_found is true, the tabs are rendered even if
no tab is found for the current controller-action pair. When it's
false, the tabs are not rendered. The default value is false that
corresponds to the previous behavior.

<DFF> @@ -14,7 +14,7 @@ module Tabulous
 
   def self.render_tabs(view)
     initialize_tabs(view)
-    # return unless tab_defined?(view)
+    return unless tab_defined?(view) || @@render_tabs_if_no_tab_found
     html = ''
     html << embed_styles
     active_tab = active_tab(view)

{'addition_count': 1, 'commit_subject': "Add the 'render_tabs_if_no_tab_found' option to the Options class", 'deletion_count': 1, 'file_extension': '.rb', 'lang': 'rb', 'license': 'mit', 'repo_name': 'techiferous/tabulous'}