Sha256: f7952d24f6b9c48dc81855d1b71363f9650ee2cc23dac7e3ac8688e756985a89

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 Bytes

Contents

require 'autoprefixer-rails'
require 'tao_on_rails'

module TaoUi
  class Engine < ::Rails::Engine

    config.eager_load_paths += Dir["#{config.root}/lib"]

    config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.{rb,yml}')]

    paths['app/views'] << 'lib/views'

    ::ActiveSupport.on_load :tao_components do
      load_tao_components TaoUi::Engine.root
    end

    initializer "tao_ui" do
      ::ActiveSupport.on_load :action_view do
        include TaoUi::ActionView::Helpers
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tao_ui-0.3.4 lib/tao_ui/engine.rb
tao_ui-0.3.3 lib/tao_ui/engine.rb
tao_ui-0.3.2 lib/tao_ui/engine.rb
tao_ui-0.3.1 lib/tao_ui/engine.rb
tao_ui-0.3.0 lib/tao_ui/engine.rb