mirror of
https://github.com/kbparagua/paloma
synced 2023-03-27 23:21:17 -04:00
Merge branch '4.0' of github.com:kbparagua/paloma into 4.0
This commit is contained in:
commit
2ce88be5a5
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -292,6 +292,20 @@ $(document).on('page:restore', function(){
|
|||
});
|
||||
```
|
||||
|
||||
### Turbolinks without `jquery.turbolinks` gem
|
||||
|
||||
You need to manually run Paloma every page load if you are not using `jquery.turbolinks` gem.
|
||||
|
||||
In your `application.js`
|
||||
|
||||
```js
|
||||
$(document).on('page:load', function(){
|
||||
Paloma.executeHook();
|
||||
Paloma.engine.start();
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## Gotchas
|
||||
|
||||
* Paloma will execute on all `render` calls, except for calls with the following formats: `js`, `json`, `xml`, and `file`.
|
||||
|
|
Loading…
Reference in a new issue