[#345] fix SystemStackError: stack level too deep

This commit is contained in:
Alexander Machehin 2014-03-21 15:38:40 +06:00
parent f95e7ce3ab
commit eb8326bf30
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class Issue < ActiveRecord::Base
has_many :subscribes, as: :subscribeable, dependent: :destroy
has_many :labelings, dependent: :destroy
has_many :labels, -> { uniq }, through: :labelings
has_one :pull_request, dependent: :destroy
has_one :pull_request#, dependent: :destroy
validates :title, :body, :project_id, presence: true