whoops again
This commit is contained in:
parent
06d06f8f55
commit
20f4497064
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class Metacode < ActiveRecord::Base
|
||||||
#output json with asset_paths merged in
|
#output json with asset_paths merged in
|
||||||
def as_json(options)
|
def as_json(options)
|
||||||
json = super(options.merge!(methods: :asset_path_icon))
|
json = super(options.merge!(methods: :asset_path_icon))
|
||||||
json["icon"] = json["asset_path_icon"] if json["icon"].start_with?('http')
|
json["icon"] = json["asset_path_icon"] unless json["icon"].start_with?('http')
|
||||||
json.except("asset_path_icon")
|
json.except("asset_path_icon")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue