make ckeditor work with rails 4 assets pipeline in production

Same as in master, this is required to get ckeditor to work the assets pipeline. Please refer to the comments there .