Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hide css:* and the default stylesheet from rails g

  • Loading branch information...
commit c796d695909c8632b4074b7af69a1ef46c68289a 1 parent 9f815ee
Yehuda Katz wycats authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 railties/lib/rails/generators.rb
7 railties/lib/rails/generators.rb
View
@@ -176,6 +176,7 @@ def self.hidden_namespaces
orm = options[:rails][:orm]
test = options[:rails][:test_framework]
template = options[:rails][:template_engine]
+ css = options[:rails][:stylesheet_engine]
[
"rails",
@@ -195,7 +196,11 @@ def self.hidden_namespaces
"#{test}:plugin",
"#{template}:controller",
"#{template}:scaffold",
- "#{template}:mailer"
+ "#{template}:mailer",
+ "#{css}:scaffold",
+ "#{css}:assets",
+ "css:assets",
+ "css:scaffold"
]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.