Class: RSX::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/rsx/railtie.rb

Overview

Wires RSX into a Rails application. Nothing here runs unless Rails is already loaded, which keeps the gem usable outside Rails.

Configure it from config/application.rb:

config.rsx.paths = [Rails.root.join("app/components")]
config.rsx.cache_store = :rails