Sha256: c85bcf3a9d52cc12bda8c89964bf5e155ccd368e60fa7836f4770d40cc8ffe71

Contents?: true

Size: 463 Bytes

Versions: 23

Compression:

Stored size: 463 Bytes

Contents

require 'ramen-rails/script_tag_helper'
require 'ramen-rails/ramen_after_filter'

module RamenRails
  class Railtie < Rails::Railtie
    initializer "ramen_rails.script_tag_helper.rb" do |app|
      ActionView::Base.send :include, ScriptTagHelper
    end

    initializer "ramen_rails.auto_include_filter.rb" do |app|
      ActionController::Base.send :include, AutoInclude
      ActionController::Base.send :after_filter, :add_ramen_script_tag
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ramen-rails-0.0.6 lib/ramen-rails/railtie.rb
ramen-rails-0.0.5 lib/ramen-rails/railtie.rb
ramen-rails-0.0.4 lib/ramen-rails/railtie.rb