Sha256: 7eabac7e6b39ed53d558f8b552e7758cb9628df281a0c81f38ad887dedf9bdab

Contents?: true

Size: 366 Bytes

Versions: 33

Compression:

Stored size: 366 Bytes

Contents

require "rails/generators/named_base"

module Less
  module Generators
    class AssetsGenerator < ::Rails::Generators::NamedBase
      
      source_root File.expand_path '../templates', __FILE__

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

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
less-rails-5.0.0 lib/rails/generators/less/assets/assets_generator.rb
less-rails-4.0.0 lib/rails/generators/less/assets/assets_generator.rb
less-rails-4.0.0.rc1 lib/rails/generators/less/assets/assets_generator.rb
less-rails-3.0.0 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.8.0 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.7.1 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.7.0 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.6.0 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.5.0 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.4.2 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.4.1 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.4.0 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.3.3 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.3.2 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.3.1 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.3.0 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.2.6 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.2.5 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.2.4 lib/rails/generators/less/assets/assets_generator.rb
less-rails-2.2.3 lib/rails/generators/less/assets/assets_generator.rb