metacodes#index map in asset_path

This commit is contained in:
Devin Howard 2015-10-25 17:14:56 +08:00 committed by Connor Turland
parent a972074306
commit d8dffad38a

View file

@ -5,8 +5,10 @@ class MetacodesController < ApplicationController
# GET /metacodes
# GET /metacodes.json
def index
@metacodes = Metacode.order("name").all
@metacodes.map do |metacode|
metacode.icon = asset_path(metacode.icon)
end
respond_to do |format|
format.html {