Sha256: 6cb3710149cce87f7e07329ada0f1e3281818149714ce82c10695ac9affdbeed

Contents?: true

Size: 438 Bytes

Versions: 3

Compression:

Stored size: 438 Bytes

Contents

require 'rails/railtie'

module Oprah
  class Railtie < Rails::Railtie
    initializer "oprah.configure_cache_clear_on_code_reload" do
      ActiveSupport::Reloader.to_run do
        Oprah::Presenter.cache.clear!
      end
    end

    initializer "oprah.configure_action_controller_helpers" do
      ActiveSupport.on_load :action_controller do
        ActionController::Base.include(Oprah::ControllerHelpers)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oprah-0.1.3 lib/oprah/railtie.rb
oprah-0.1.2 lib/oprah/railtie.rb
oprah-0.1.1 lib/oprah/railtie.rb