From 888edae6f6f2a03a24fea53b7a31561a16497810 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sun, 20 Dec 2015 22:28:05 +0800 Subject: [PATCH] finish remove asset_path_icon whoops --- app/models/metacode.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/models/metacode.rb b/app/models/metacode.rb index 51ac4fa5..03b0f0c0 100644 --- a/app/models/metacode.rb +++ b/app/models/metacode.rb @@ -13,11 +13,4 @@ class Metacode < ActiveRecord::Base return true if self.metacode_sets.include? metacode_set return false 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