Skip to content

Instantly share code, notes, and snippets.

View obalais's full-sized avatar

Olivier Balais obalais

View GitHub Profile
@obalais
obalais / 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'

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