Skip to content

Commit e557bc9

Browse files
committed
Merge pull request #271 from rails/skip-css-ext
.css.css -> .scss
2 parents 0fc0603 + d355de9 commit e557bc9

32 files changed

+19
-26
lines changed

lib/rails/generators/sass/assets/assets_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class AssetsGenerator < ::Rails::Generators::NamedBase
66
source_root File.expand_path("../templates", __FILE__)
77

88
def copy_sass
9-
template "stylesheet.css.sass", File.join('app/assets/stylesheets', class_path, "#{file_name}.css.sass")
9+
template "stylesheet.sass", File.join('app/assets/stylesheets', class_path, "#{file_name}.sass")
1010
end
1111
end
1212
end

lib/rails/generators/sass_scaffold.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ def copy_stylesheet
88
dir = ::Rails::Generators::ScaffoldGenerator.source_root
99
file = File.join(dir, "scaffold.css")
1010
converted_contents = ::Sass::CSS.new(File.read(file)).render(syntax)
11-
create_file "app/assets/stylesheets/scaffolds.css.#{syntax}", converted_contents
11+
create_file "app/assets/stylesheets/scaffolds.#{syntax}", converted_contents
1212
end
1313
end
1414
end
1515
end
16-

lib/rails/generators/scss/assets/assets_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class AssetsGenerator < ::Rails::Generators::NamedBase
66
source_root File.expand_path("../templates", __FILE__)
77

88
def copy_scss
9-
template "stylesheet.css.scss", File.join('app/assets/stylesheets', class_path, "#{file_name}.css.scss")
9+
template "stylesheet.scss", File.join('app/assets/stylesheets', class_path, "#{file_name}.scss")
1010
end
1111
end
1212
end

lib/sass/rails/importer.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ def initialize(context, *args)
1414
def extensions
1515
{
1616
'css' => :scss,
17-
'css.scss' => :scss,
18-
'css.sass' => :sass,
1917
'css.erb' => :scss,
2018
'scss.erb' => :scss,
21-
'sass.erb' => :sass,
22-
'css.scss.erb' => :scss,
23-
'css.sass.erb' => :sass
19+
'sass.erb' => :sass
2420
}.merge!(super)
2521
end
2622

sass-rails.gemspec

Lines changed: 0 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)