status_viewhelper.rb revision ecc1c5f9e6d6c3ec89fe2298ba933a82bca5bfa0
TABS = [
]
HELPERS = {
}
attr_reader :tab, :view, :available_tabs
end
def initialize(view, tab)
end
[tab_title, tab, count ? count.call : nil]
end
end
@inner_helper ||= initialize_helper(HELPERS[tab])
end
end
end
view.render partial: tab.to_s, locals: {view: inner_helper} if tab
end
end