Sha256: 326335e344a69439693482a89a1c10406157446628b785fea38e0bc57ab13bf3

Contents?: true

Size: 353 Bytes

Versions: 57

Compression:

Stored size: 353 Bytes

Contents

require "rails/generators/named_base"

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

      def copy_sass
        template "stylesheet.css.sass", File.join('app/assets/stylesheets', class_path, "#{file_name}.css.sass")
      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/sass/assets/assets_generator.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/sass-rails-4.0.5/lib/rails/generators/sass/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/sass/assets/assets_generator.rb
sass-rails-4.0.5 lib/rails/generators/sass/assets/assets_generator.rb
sass-rails-4.0.4 lib/rails/generators/sass/assets/assets_generator.rb
sass-rails-5.0.0.beta1 lib/rails/generators/sass/assets/assets_generator.rb
sass-rails3-4.0.1 lib/rails/generators/sass/assets/assets_generator.rb
sass-rails-4.0.3 lib/rails/generators/sass/assets/assets_generator.rb
sass-rails-4.0.2 lib/rails/generators/sass/assets/assets_generator.rb
sass-rails-4.0.1 lib/rails/generators/sass/assets/assets_generator.rb
sass-rails-4.0.0 lib/rails/generators/sass/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/sass/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/sass/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/sass/assets/assets_generator.rb
sass-rails-4.0.0.rc2 lib/rails/generators/sass/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/sass/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/sass/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/sass/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/sass/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/sass/assets/assets_generator.rb