Sha256: 02d277f4214c39d4c24d933cd45b7244f42e903b9297c37a7d6a1e4b6e15a0a2

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

require 'embeddable/view_helpers'

module Embeddable
  class Railtie < Rails::Railtie
    initializer "embeddable.view_helpers" do
      ActionView::Base.send :include, Embeddable::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

1 entries across 1 versions & 1 rubygems

Version Path
embeddable-0.0.8 lib/embeddable/railtie.rb