This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace PersistentStorage | |
{ | |
public interface IPersistentStorage | |
{ | |
IEnumerable<string> Groups { get; } | |
IEnumerable<string> KeysForGroup(string group); | |
bool ContainsKey(string group, string key); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from "ember"; | |
export default Ember.Helper.helper(function([content, group, contentGroupKey]) { | |
return content.filterBy(contentGroupKey, group); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
var SideLoader = Ember.Object.extend({ | |
}); | |
SideLoader.reopenClass({ | |
loadMany: function(resourceClass) { | |
// GET the items from the 'resourceClass' endpoint | |
return resourceClass.fetch().then(items => { | |
var sideLoad = {}; |