Sha256: 0db2a23491380bf7f9ee13d1ab271bc598eb05fe6a0eef7c7baae0ab4519a90a

Contents?: true

Size: 470 Bytes

Versions: 4

Compression:

Stored size: 470 Bytes

Contents

require 'active_resource'

require_relative 'collections/base'

module RedmineRest
  module Models
    #
    # issue priority model
    #
    class IssuePriority < ActiveResource::Base
      self.format = :xml
      self.collection_parser = Collections::Base
      self.prefix = '/enumerations/'

      def self.find(*args)
        fail('Issue priorities can be loaded as :all only') unless args.size == 1 && args.first == :all
        super
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redmine_rest-0.8.0 lib/redmine_rest/models/issue_priority.rb
redmine_rest-0.7.0 lib/redmine_rest/models/issue_priority.rb
redmine_rest-0.6.1 lib/redmine_rest/models/issue_priority.rb
redmine_rest-0.6.0 lib/redmine_rest/models/issue_priority.rb