Sha256: 0c5703a99921585390478e7b257b7f9f93f3ec85f14e073caaa4ac7e7793ea1e

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

require 'active_resource'

require_relative 'user'
require_relative 'project'
require_relative 'version'

module RedmineRest
  module Models
    #
    # issue model
    #
    class Issue < ActiveResource::Base
      self.format = :xml
      has_one :author, class_name: User
      has_one :assigned_to, class_name: User
      has_one :project, class_name: Project
      has_one :version, class_name: Version
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redmine_rest-0.1.1 lib/redmine_rest/models/issue.rb
redmine_rest-0.1.0 lib/redmine_rest/models/issue.rb