Skip to content

Commit

Permalink
Reject assets only ending with .js / .css in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Jul 27, 2015
1 parent ba685d1 commit a56f897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/components_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def assets
paths = version.asset_paths.map

# TODO: exclude manifest assets from asset_paths at all...
paths = paths.reject { |f| f.match(/(?:app|vendor)\/assets\/javascripts\/[^\/]+\.js/) }
paths = paths.reject { |f| f.match(/(?:app|vendor)\/assets\/stylesheets\/[^\/]+\.scss/) }
paths = paths.reject { |f| f.match(/(?:app|vendor)\/assets\/javascripts\/[^\/]+\.js$/) }
paths = paths.reject { |f| f.match(/(?:app|vendor)\/assets\/stylesheets\/[^\/]+\.scss$/) }

paths = paths.map do |path|
{
Expand Down

0 comments on commit a56f897

Please sign in to comment.