Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (20 sloc) 0.731 kB
6c91b69 @dhh The controller and resource generators will now automatically produce…
dhh authored
1 module Rails
2 module Generators
521e2ee update Rails::Generators docs [ci skip]
Francesco Rodriguez authored
3 class AssetsGenerator < NamedBase # :nodoc:
5ad7f8a @robin850 Use Ruby 1.9 Hash syntax in railties
robin850 authored
4 class_option :javascripts, type: :boolean, desc: "Generate JavaScripts"
5 class_option :stylesheets, type: :boolean, desc: "Generate Stylesheets"
3a68aec @josevalim Make generators more modular, add hooks and improve test suite.
josevalim authored
6
5ad7f8a @robin850 Use Ruby 1.9 Hash syntax in railties
robin850 authored
7 class_option :javascript_engine, desc: "Engine for JavaScripts"
8 class_option :stylesheet_engine, desc: "Engine for Stylesheets"
3a68aec @josevalim Make generators more modular, add hooks and improve test suite.
josevalim authored
9
10 protected
11
12 def asset_name
13 file_name
6c91b69 @dhh The controller and resource generators will now automatically produce…
dhh authored
14 end
3a68aec @josevalim Make generators more modular, add hooks and improve test suite.
josevalim authored
15
539752a @spastorino Move Coffee generators and templates to Coffee Railtie and create jav…
spastorino authored
16 hook_for :javascript_engine do |javascript_engine|
17 invoke javascript_engine, [name] if options[:javascripts]
6c91b69 @dhh The controller and resource generators will now automatically produce…
dhh authored
18 end
3a68aec @josevalim Make generators more modular, add hooks and improve test suite.
josevalim authored
19
74ade51 Move SCSS generators and default templates from Rails to the Sass Rai…
tomhuda authored
20 hook_for :stylesheet_engine do |stylesheet_engine|
21 invoke stylesheet_engine, [name] if options[:stylesheets]
6c91b69 @dhh The controller and resource generators will now automatically produce…
dhh authored
22 end
23 end
24 end
25 end
Something went wrong with that request. Please try again.