Skip to content

Commit

Permalink
No need to have conditional based on api options in assets
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
prathamesh-sonpatki committed Jun 19, 2016
1 parent 166e7f0 commit 55bb28b
Showing 1 changed file with 0 additions and 2 deletions.
@@ -1,6 +1,4 @@
<% unless options.api? -%>
//= link_tree ../images
<% end -%>
<% unless options.skip_javascript -%>
//= link_directory ../javascripts .js
<% end -%>
Expand Down

0 comments on commit 55bb28b

Please sign in to comment.