Skip to content

Instantly share code, notes, and snippets.

View bobey's full-sized avatar

Olivier Balais bobey

View GitHub Profile
@bobey
bobey / vimrc
Created March 14, 2014 10:38 — forked from bewiwi/vimrc
"Before : git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
"First run : :BundleInstall
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'scrooloose/nerdtree'
@bobey
bobey / gist:4977535
Created February 18, 2013 13:49 — forked from tomdale/gist:4263171

Read-Only

An important feature for Ember Data is providing helpful error messages when your application tries to do something that is forbidden by the data model.

To that end, we would like for the data model to be able to mark certain records, attributes, and relationships as read-only. This ensures that we can provide errors immediately, and not have to wait for a return trip from the adapter.

This also means that the adapter does not need to handle the case where an application developer inadvertently makes changes to a record that it does not conceptually make sense to modify on the client.

Requirements