Sha256: a529d05ff263cd20252108e8ef902fc7e455a0b5b7b2d9efd1f2e41cfe51bccf

Contents?: true

Size: 496 Bytes

Versions: 11

Compression:

Stored size: 496 Bytes

Contents

module IntercomRails
  class Railtie < Rails::Railtie
    initializer "intercom-rails" do |app|
      ActiveSupport.on_load :action_view do
        include ScriptTagHelper
      end
      ActiveSupport.on_load :action_controller do
        include CustomDataHelper
        include AutoInclude::Method

        if respond_to? :after_action
          after_action :intercom_rails_auto_include
        else
          after_filter :intercom_rails_auto_include
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
intercom-rails-1.0.6 lib/intercom-rails/railtie.rb
intercom-rails-1.0.5 lib/intercom-rails/railtie.rb
intercom-rails-1.0.4 lib/intercom-rails/railtie.rb
intercom-rails-1.0.1 lib/intercom-rails/railtie.rb
intercom-rails-1.0.0 lib/intercom-rails/railtie.rb
intercom-rails-0.4.2 lib/intercom-rails/railtie.rb
intercom-rails-0.4.1 lib/intercom-rails/railtie.rb
intercom-rails-0.4.0 lib/intercom-rails/railtie.rb
intercom-rails-0.3.8 lib/intercom-rails/railtie.rb
intercom-rails-0.3.5 lib/intercom-rails/railtie.rb
intercom-rails-0.3.4 lib/intercom-rails/railtie.rb