diff --git a/README.md b/README.md index dbb2c67..2bfd621 100644 --- a/README.md +++ b/README.md @@ -103,13 +103,14 @@ Hypernova.configure do |config| end ``` -In your controller, you’ll need an `:around_filter` so you can opt into Hypernova rendering of view partials. +In your controller, you‘ll need an `:around_action` so you can opt into Hypernova rendering of view partials. ```ruby class SampleController < ApplicationController - around_filter :hypernova_render_support + around_action :hypernova_render_support end ``` +Use `:around_filter` instead of `:around_action` if you using version 3.2.13 or older. And then in your view we `render_react_component`. diff --git a/examples/simple/app/controllers/welcome_controller.rb b/examples/simple/app/controllers/welcome_controller.rb index aecbdb3..598f514 100644 --- a/examples/simple/app/controllers/welcome_controller.rb +++ b/examples/simple/app/controllers/welcome_controller.rb @@ -1,5 +1,5 @@ class WelcomeController < ApplicationController - around_filter :hypernova_render_support + around_action :hypernova_render_support def index end end