Fix failing spec

This commit is contained in:
Felipe Artur 2017-09-06 13:25:15 -03:00
parent f9fbae2e27
commit a1a839c99f

View file

@ -173,7 +173,7 @@ class Label < ActiveRecord::Base
def as_json(options = {})
super(options).tap do |json|
json[:type] = self.type
json[:type] = self.try(:type)
json[:priority] = priority(options[:project]) if options.key?(:project)
end
end