Skip to content

Commit

Permalink
Update docs on parent_controller configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklindsay committed Mar 11, 2016
1 parent aeb4581 commit 1ad8282
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -294,6 +294,17 @@ By default, only the user that logged in can access the models (with actions *in

You can customize these two policy files as you like.

## Engine configuration
* To override the default CKEditor routes create a [config.js](https://github.com/galetahub/ckeditor/blob/master/app/assets/javascripts/ckeditor/config.js) file within the host application at `app/assets/javascripts/ckeditor/config.js`
* To override the default parent controller
```
# in config/initializers/ckeditor.rb
Ckeditor.setup do |config|
config.parent_controller = 'MyController'
end
```

## I18n

```yml
Expand Down
4 changes: 4 additions & 0 deletions lib/generators/ckeditor/templates/ckeditor.rb
Expand Up @@ -20,6 +20,10 @@
# By default: there is no authorization.
# config.authorize_with :cancan

# Override parent controller CKEditor inherits from
# By default: 'ApplicationController'
# config.parent_controller = 'MyController'

# Asset model classes
# config.picture_model { Ckeditor::Picture }
# config.attachment_file_model { Ckeditor::AttachmentFile }
Expand Down

0 comments on commit 1ad8282

Please sign in to comment.