Sha256: abac06e3e37fcee74eee412f5ec2e0a6a5e373f666d2e5937d8b13c81095be59

Contents?: true

Size: 483 Bytes

Versions: 2

Compression:

Stored size: 483 Bytes

Contents

require "cis_rails_chat/view_helpers"

module CisRailsChat
  class Engine < Rails::Engine
    # Loads the cis_rails_chat.yml file if it exists.
    initializer "cis_rails_chat.config" do
      path = Rails.root.join("config/cis_rails_chat.yml")
      CisRailsChat.load_config(path, Rails.env) if path.exist?
    end

    # Adds the ViewHelpers into ActionView::Base
    initializer "cis_rails_chat.view_helpers" do
      ActionView::Base.send :include, ViewHelpers
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cis_rails_chat-1.0.3 lib/cis_rails_chat/engine.rb
cis_rails_chat-1.0.2 lib/cis_rails_chat/engine.rb