Sha256: 7879f89892d28cbea2aaa0a63ca2c47e00b7f9dc1be3e6519a7e83e1d4ec17d7
Contents?: true
Size: 778 Bytes
Versions: 42
Compression:
Stored size: 778 Bytes
Contents
# frozen_string_literal: true module Rails module Generators class AssetsGenerator < NamedBase # :nodoc: class_option :javascripts, type: :boolean, desc: "Generate JavaScripts" class_option :stylesheets, type: :boolean, desc: "Generate Stylesheets" class_option :javascript_engine, desc: "Engine for JavaScripts" class_option :stylesheet_engine, desc: "Engine for Stylesheets" private def asset_name file_name end hook_for :javascript_engine do |javascript_engine| invoke javascript_engine, [name] if options[:javascripts] end hook_for :stylesheet_engine do |stylesheet_engine| invoke stylesheet_engine, [name] if options[:stylesheets] end end end end
Version data entries
42 entries across 42 versions & 3 rubygems
Version | Path |
---|---|
railties-5.2.0.beta2 | lib/rails/generators/rails/assets/assets_generator.rb |
railties-5.2.0.beta1 | lib/rails/generators/rails/assets/assets_generator.rb |