Sha256: aa7657d2d444e66909ad90aa7b120676008b815f26b4c14113073ad623ef735d

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

module MulberryPreview
  class Railtie < ::Rails::Railtie #:nodoc:
    initializer 'preview' do |_app|
      require 'mulberry_preview/helper/action_view_extension'
      ActiveSupport.on_load(:action_view) do
        ::ActionView::Base.send :include, MulberryPreview::ActionViewExtension
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mulberry_preview-0.0.10 lib/mulberry_preview/railtie.rb
mulberry_preview-0.0.9 lib/mulberry_preview/railtie.rb