finish remove asset_path_icon whoops

This commit is contained in:
Devin Howard 2015-12-20 22:28:05 +08:00
parent df485002b1
commit 888edae6f6

View file

@ -13,11 +13,4 @@ class Metacode < ActiveRecord::Base
return true if self.metacode_sets.include? metacode_set return true if self.metacode_sets.include? metacode_set
return false return false
end end
#output json with asset_paths merged in
def as_json(options)
json = super(options.merge!(methods: :asset_path_icon))
json["icon"] = json["asset_path_icon"]
json.except("asset_path_icon")
end
end end