Sha256: 09d49ee511a9e1afe6ace51bd85cd9622cf5c9af8562728390a91e92f6af2910

Contents?: true

Size: 377 Bytes

Versions: 161

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

161 entries across 156 versions & 12 rubygems

Version Path
railties-4.1.14.1 lib/rails/generators/css/assets/assets_generator.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/css/assets/assets_generator.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/css/assets/assets_generator.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/css/assets/assets_generator.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/css/assets/assets_generator.rb
railties-5.0.0.beta1 lib/rails/generators/css/assets/assets_generator.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/css/assets/assets_generator.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/css/assets/assets_generator.rb
railties-4.1.14 lib/rails/generators/css/assets/assets_generator.rb
railties-4.2.5 lib/rails/generators/css/assets/assets_generator.rb
railties-4.2.5.rc2 lib/rails/generators/css/assets/assets_generator.rb
railties-4.1.14.rc2 lib/rails/generators/css/assets/assets_generator.rb
railties-4.2.5.rc1 lib/rails/generators/css/assets/assets_generator.rb
railties-4.1.14.rc1 lib/rails/generators/css/assets/assets_generator.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/generators/css/assets/assets_generator.rb
railties-4.2.4 lib/rails/generators/css/assets/assets_generator.rb
railties-4.1.13 lib/rails/generators/css/assets/assets_generator.rb
railties-4.2.4.rc1 lib/rails/generators/css/assets/assets_generator.rb
railties-4.1.13.rc1 lib/rails/generators/css/assets/assets_generator.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/railties-4.2.3/lib/rails/generators/css/assets/assets_generator.rb