Sha256: c2ca30db8ee5de8aff3ae27c757705c808e7b9b163780400a85f32e74221be4e

Contents?: true

Size: 377 Bytes

Versions: 20

Compression:

Stored size: 377 Bytes

Contents

require "rails/generators/named_base"

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

      def copy_stylesheet
        copy_file "stylesheet.css", File.join("app/assets/stylesheets", class_path, "#{file_name}.css")
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
railties-5.1.7 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.7.rc1 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.6.2 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.6.1 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.6 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.5 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.5.rc1 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.4 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.4.rc1 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.3 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.3.rc3 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.3.rc2 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.3.rc1 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.2 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.2.rc1 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.1 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.0 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.0.rc2 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.0.rc1 lib/rails/generators/css/assets/assets_generator.rb
railties-5.1.0.beta1 lib/rails/generators/css/assets/assets_generator.rb