lib/use_tinymce/railengine.rb in use_tinymce-0.0.15 vs lib/use_tinymce/railengine.rb in use_tinymce-0.0.16
- old
+ new
@@ -1,7 +1,7 @@
module UseTinymce
class Engine < Rails::Engine
- if Rails.version =~ /^3.[012]/
+ if Rails.version =~ /^3.[012]/ || Rails.version =~ /^4.[0]/
initializer "active_support.add_use_tinymce" do
::ActiveSupport.on_load(:action_controller) do
include UseTinymce::Base
end
::ActiveSupport.on_load(:action_view) do
\ No newline at end of file