added option readOnly
Merge branch 'master' into rails4