Sha256: f182bd60aa117426a4c424cd5409fda2458e586e31ebc81f05229e22194f9eb9

Contents?: true

Size: 679 Bytes

Versions: 3

Compression:

Stored size: 679 Bytes

Contents

require 'muck-contents'
require 'rails'

module MuckContents
  class Engine < ::Rails::Engine
    
    def muck_name
      'muck-contents'
    end
    
    config.app_middleware.insert_before("ActionDispatch::ShowExceptions", "MuckContents::Routing::Rack")
    
    initializer 'muck-contents.helpers' do |app|
      ActiveSupport.on_load(:action_view) do
        include MuckContentsHelper
        include TinymceHelper
      end
    end
    
    initializer 'muck-contents.i18n' do |app|
      ActiveSupport.on_load(:i18n) do
        I18n.load_path += Dir[ File.join(File.dirname(__FILE__), '..', '..', 'config', 'locales', '*.{rb,yml}') ]
      end
    end
        
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
muck-contents-3.1.0 lib/muck-contents/engine.rb
muck-contents-3.0.2 lib/muck-contents/engine.rb
muck-contents-3.0.1 lib/muck-contents/engine.rb