Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 68959b7

Browse files
committed
added hyperloop application controller
1 parent 9be992a commit 68959b7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/reactive-ruby/rails/railtie.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ class Railtie < ::Rails::Railtie
99
app.config.react.view_helper_implementation =
1010
ReactiveRuby::Rails::ComponentMount
1111
end
12+
config.after_initialize do
13+
class ::HyperloopController < ::ApplicationController
14+
def action_missing(name)
15+
render_component
16+
end
17+
end
18+
end
1219
end
1320
end
1421
end

0 commit comments

Comments
 (0)