README.mdown in intercom-rails-0.2.30 vs README.mdown in intercom-rails-0.2.31

- old
+ new

@@ -28,11 +28,11 @@ ### Disabling automatic insertion To disable automatic insertion for a particular controller or action you can: ```ruby - skip_after_filter :intercom_rails_auto_include + skip_after_action :intercom_rails_auto_include ``` ### Troubleshooting If it's not working make sure: @@ -198,9 +198,10 @@ As of version 0.2.30 this gem supports CSP, allowing you to whitelist the include code using both nonces and SHA-256 hashes. #### Automatic Insertion CSP support for automatic insertion exposes two namespaces that can be defined by the user via monkey patching: - String CoreExtensions::IntercomRails::AutoInclude.csp_nonce_hook(controller) - nil CoreExtensions::IntercomRails::AutoInclude.csp_sha256_hook(controller, SHA-256 whitelist entry) + For instance, a CSP nonce can be inserted using the [Twitter Secure Headers](https://github.com/twitter/secureheaders) gem with the following code: ```ruby module CoreExtensions module IntercomRails module AutoInclude