diff --git a/lib/jbuilder/railtie.rb b/lib/jbuilder/railtie.rb index 517ebce..4c3035b 100644 --- a/lib/jbuilder/railtie.rb +++ b/lib/jbuilder/railtie.rb @@ -10,7 +10,7 @@ class Railtie < ::Rails::Railtie end end - if Rails::VERSION::MAJOR == 4 + if Rails::VERSION::MAJOR >= 4 generators do |app| Rails::Generators.configure! app.config.generators Rails::Generators.hidden_namespaces.uniq!