Fix failing spec
This commit is contained in:
parent
f9fbae2e27
commit
a1a839c99f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue