From 20939b3fcc3e34850e3c4b47327eff7ccaaa8eba Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sat, 18 Apr 2015 19:53:40 -0400 Subject: config.generators.api_only = true set rails api option on generators --- railties/lib/rails/generators.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb index b2f227595d..8239c9bd9e 100644 --- a/railties/lib/rails/generators.rb +++ b/railties/lib/rails/generators.rb @@ -105,6 +105,10 @@ module Rails def self.api_only! hide_namespaces "assets", "helper", "css", "js" + + options[:rails].merge!( + api: true + ) end # Remove the color from output. -- cgit v1.2.3