app/helpers/app_frame/scopes_helper.rb
# return only the filter (non boolean) scopes
return only the filter (non boolean) scopes
return only the filter ( non boolean ) scopes
def filter_scopes
    @filter_scopes ||= scopes.inject({}) do |result, element|
      result[element.first] = element.last if element.last[:type] != :boolean
      result
    end
  end
def filter_scopes @filter_scopes ||= scopes . inject ( { } ) do | result , element | result [ element . first ] = element . last if element . last [ :type ] != :boolean result end end
return only the filter (non boolean) scopes
return only the filter ( non boolean ) scopes