Sha256: 73ff2a007699016d6587d4c5a684836bca4987039f5a9d2eb13caa98fec95426

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

module TemplateSwitcher
  class Railtie < ::Rails::Railtie
    initializer 'template_switcher' do |_app|
      ActiveSupport.on_load(:action_controller) do
        require "template_switcher/action_controller_extension"
        ::ActionController::Base.send :include, TemplateSwitcher::ActionControllerExtension
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
template-switcher-0.0.2 lib/template_switcher/railtie.rb
template-switcher-0.0.1 lib/template_switcher/railtie.rb