app/helpers/app_frame/scopes_helper.rb
# craete a navigation for all the boolean scopes
craete a navigation for all the boolean scopes
craete a navigation for all the boolean scopes
def scope_nav
    return unless boolean_scopes.count > 0
    if default_scopes.any?
      result = []
    else
      result = [scope_link]
    end
    boolean_scopes.each do |name, s|
      result << scope_link(s)
    end
    content_tag :ul, result.join("\n").html_safe, :class => 'nav nav-pills'
  end
def scope_nav return unless boolean_scopes . count > 0 if default_scopes . any? result = [ ] else result = [ scope_link ] end boolean_scopes . each do | name , s | result << scope_link ( s ) end content_tag :ul , result . join ( "\n" ) . html_safe , :class => 'nav nav-pills' end
craete a navigation for all the boolean scopes
craete a navigation for all the boolean scopes