Skip to content
This repository
Browse code

Hide css:* and the default stylesheet from rails g

  • Loading branch information...
commit d21fef324b5270e9e3c255d278974a15a34b118a 1 parent c1df442
Yehuda Katz wycats authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 railties/lib/rails/generators.rb
7 railties/lib/rails/generators.rb
@@ -176,6 +176,7 @@ def self.hidden_namespaces
176 176 orm = options[:rails][:orm]
177 177 test = options[:rails][:test_framework]
178 178 template = options[:rails][:template_engine]
  179 + css = options[:rails][:stylesheet_engine]
179 180
180 181 [
181 182 "rails",
@@ -195,7 +196,11 @@ def self.hidden_namespaces
195 196 "#{test}:plugin",
196 197 "#{template}:controller",
197 198 "#{template}:scaffold",
198   - "#{template}:mailer"
  199 + "#{template}:mailer",
  200 + "#{css}:scaffold",
  201 + "#{css}:assets",
  202 + "css:assets",
  203 + "css:scaffold"
199 204 ]
200 205 end
201 206 end

0 comments on commit d21fef3

Please sign in to comment.
Something went wrong with that request. Please try again.