Sha256: a21e6cabc327c6039ce9000b6cf6c9865a90afd21bb2b9de8f0afa6b4abdaf92

Contents?: true

Size: 528 Bytes

Versions: 4

Compression:

Stored size: 528 Bytes

Contents

require_relative 'project'
require_relative 'user'

class Issue < ActiveRecord::Base
  belongs_to :project
  belongs_to :user
  belongs_to :author, class_name: 'User'

  has_many :relations_from, class_name: 'IssueRelation', foreign_key: 'issue_from_id', dependent: :delete_all
  has_many :relations_to, class_name: 'IssueRelation', foreign_key: 'issue_to_id', dependent: :delete_all

  up_acts_as_draftable
  up_acts_as_taggable
  up_acts_as_viewed

  scope :visible, lambda { where('1=1') }

  def visible?
    true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redmineup-1.0.5 test/models/issue.rb
redmineup-1.0.4 test/models/issue.rb
redmineup-1.0.3 test/models/issue.rb
redmineup-1.0.2 test/models/issue.rb