Skip to content

Commit

Permalink
Use a fallback for locating blacklight svg icons in production
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jan 9, 2017
1 parent 48c5dda commit 29fe5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/blacklight/icon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def file_source
private

def file
Rails.application.assets.find_asset(path)
(Rails.application.assets || ::Sprockets::Railtie.build_environment(Rails.application)).find_asset(path)
end

def classes
Expand Down

0 comments on commit 29fe5af

Please sign in to comment.