diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-06-18 18:35:07 -0700 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-06-20 07:06:59 +0800 |
commit | 55bb28bd5ac6979bedef330ebbccb6f6a5f61a2a (patch) | |
tree | f4ae764286f338cee0ad64417aecd4cc2e01889f /railties/lib | |
parent | 166e7f07c9888b1ea60a532d38704115cdde56e3 (diff) | |
download | rails-55bb28bd5ac6979bedef330ebbccb6f6a5f61a2a.tar.gz rails-55bb28bd5ac6979bedef330ebbccb6f6a5f61a2a.tar.bz2 rails-55bb28bd5ac6979bedef330ebbccb6f6a5f61a2a.zip |
No need to have conditional based on api options in assets
- As assets are removed for API only apps anyways, so we don't need any
conditional upfront.
- assets are removed for API apps here - https://github.com/rails/rails/blob/94ef224aa61ace3fa643eab161ff9056b7d90a62/railties/lib/rails/generators/rails/app/app_generator.rb#L266-L273.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt b/railties/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt index f4ee1409af..70b579d10e 100644 --- a/railties/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt +++ b/railties/lib/rails/generators/rails/app/templates/app/assets/config/manifest.js.tt @@ -1,6 +1,4 @@ -<% unless options.api? -%> //= link_tree ../images -<% end -%> <% unless options.skip_javascript -%> //= link_directory ../javascripts .js <% end -%> |