lib/x-editable-rails.rb in x-editable-rails-0.0.3 vs lib/x-editable-rails.rb in x-editable-rails-1.0.0
- old
+ new
@@ -1,10 +1,14 @@
-require "x-editable-rails/version"
+require 'x-editable-rails/version'
+require 'x-editable-rails/view_helpers'
module X
module Editable
module Rails
class Engine < ::Rails::Engine
+ initializer 'x-editable-rails.view_helpers' do
+ ActionView::Base.send :include, ViewHelpers
+ end
end
end
end
end