Sha256: b0e1316c26e0f0f5a4021ab4e81c8f929e15ff65afbe306f2b36d9a80970128e

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

require 'embeddable/view_helpers'

module Embeddable
  class Railtie < Rails::Railtie
    initializer "embeddable.view_helpers" do
      ActionView::Base.send :include, ViewHelpers
    end

    initializer 'embeddable.add_view_paths', :after => :add_view_paths do |app|
      ActiveSupport.on_load(:action_controller) do
        append_view_path "#{Gem.loaded_specs['embeddable'].full_gem_path}/views"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
embeddable-0.0.7 lib/embeddable/railtie.rb
embeddable-0.0.6 lib/embeddable/railtie.rb