app/helpers/app_frame/scopes_helper.rb
def default_scopes
    @default_scopes ||= scopes.inject({}) do |result, element|
      result[element.first] = element.last if element.last[:default] == true
      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 default_scopes
    @default_scopes ||= scopes.inject({}) do |result, element|
      result[element.first] = element.last if element.last[:default] == true
      result
    end
  end
def default_scopes @default_scopes ||= scopes . inject ( { } ) do | result , element | result [ element . first ] = element . last if element . last [ :default ] == true result end end
return all scopes configured in the controller
return all scopes configured in the controller