app/helpers/app_frame/scopes_helper.rb
def current_boolean_scopes
    @current_boolean_scopes ||= current_scopes.inject({}) do |result, element|
      result[element.first] = element.last if boolean_scopes.keys.include?(element.first)
      result
    end
  end
# return all scopes configured in the controller
return all scopes configured in the controller
return all scopes configured in the controller
def current_boolean_scopes
    @current_boolean_scopes ||= current_scopes.inject({}) do |result, element|
      result[element.first] = element.last if boolean_scopes.keys.include?(element.first)
      result
    end
  end
def current_boolean_scopes @current_boolean_scopes ||= current_scopes . inject ( { } ) do | result , element | result [ element . first ] = element . last if boolean_scopes . keys . include? ( element . first ) result end end
return all scopes configured in the controller
return all scopes configured in the controller