lib/tao_ui/engine.rb in tao_ui-0.2.6 vs lib/tao_ui/engine.rb in tao_ui-0.2.7
- old
+ new
@@ -1,12 +1,19 @@
require 'autoprefixer-rails'
require 'tao_on_rails'
require 'tao_ui/components'
+require 'tao_ui/action_view/helpers'
module TaoUi
class Engine < ::Rails::Engine
config.i18n.load_path += Dir[config.root.join('config', 'locales', '**', '*.{rb,yml}')]
paths['app/views'] << 'lib/views'
+
+ initializer "tao_ui.view_helpers" do |app|
+ ::ActiveSupport.on_load :action_view do
+ include TaoUi::ActionView::Helpers
+ end
+ end
end
end