Sha256: 0d1459925f55de95ab1ba0c25b03f068ed7f5396d7015a49d8cbd35ee334df2b

Contents?: true

Size: 353 Bytes

Versions: 57

Compression:

Stored size: 353 Bytes

Contents

require "rails/generators/named_base"

module Scss
  module Generators
    class AssetsGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path("../templates", __FILE__)

      def copy_scss
        template "stylesheet.css.scss", File.join('app/assets/stylesheets', class_path, "#{file_name}.css.scss")
      end
    end
  end
end

Version data entries

57 entries across 55 versions & 8 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/sass-rails-4.0.5/lib/rails/generators/scss/assets/assets_generator.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/sass-rails-4.0.5/lib/rails/generators/scss/assets/assets_generator.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sass-rails-3.2.6/lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-4.0.5 lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-4.0.4 lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-5.0.0.beta1 lib/rails/generators/scss/assets/assets_generator.rb
sass-rails3-4.0.1 lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-4.0.3 lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-4.0.2 lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-4.0.1 lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-4.0.0 lib/rails/generators/scss/assets/assets_generator.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sass-rails-3.2.6/lib/rails/generators/scss/assets/assets_generator.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sass-rails-3.2.6/lib/rails/generators/scss/assets/assets_generator.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sass-rails-3.2.6/lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-4.0.0.rc2 lib/rails/generators/scss/assets/assets_generator.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sass-rails-3.2.6/lib/rails/generators/scss/assets/assets_generator.rb
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/sass-rails-3.2.6/lib/rails/generators/scss/assets/assets_generator.rb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/sass-rails-3.2.6/lib/rails/generators/scss/assets/assets_generator.rb
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/sass-rails-3.2.6/lib/rails/generators/scss/assets/assets_generator.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/sass-rails-3.2.6/lib/rails/generators/scss/assets/assets_generator.rb