Sha256: 4f00d6035eb26571f4995a4873e3b78e97d9952f202d8d0e21d6ffdbf0ae561b

Contents?: true

Size: 345 Bytes

Versions: 37

Compression:

Stored size: 345 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.scss", File.join('app/assets/stylesheets', class_path, "#{file_name}.scss")
      end
    end
  end
end

Version data entries

37 entries across 31 versions & 7 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/sassc-rails-2.1.2/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sass-rails-5.0.7/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-rails-2.1.2/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-rails-2.1.2/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sass-rails-5.0.7/lib/rails/generators/scss/assets/assets_generator.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/sass-rails-5.1.0/lib/rails/generators/scss/assets/assets_generator.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/sass-rails-5.1.0/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sass-rails-5.0.7/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sassc-rails-2.1.2/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/sass-rails-5.0.7/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/sassc-rails-2.1.2/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/sass-rails-5.0.7/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/sassc-rails-2.1.2/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/sass-rails-5.0.7/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/sassc-rails-2.1.2/lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-5.0.8 lib/rails/generators/scss/assets/assets_generator.rb
sass-rails-5.1.0 lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/sass-rails-5.0.7/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/sass-rails-5.0.7/lib/rails/generators/scss/assets/assets_generator.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/sass-rails-5.0.7/lib/rails/generators/scss/assets/assets_generator.rb