Sha256: 8b2049fc4115219589e256ccda474431c74ce1d349f1824060f2d89b9cfdca59

Contents?: true

Size: 413 Bytes

Versions: 4

Compression:

Stored size: 413 Bytes

Contents

require 'active_resource'

require_relative 'collections/base'

module RedmineRest
  module Models
    #
    # Tracker  model
    #
    class Tracker < ActiveResource::Base
      self.format = :xml
      self.collection_parser = Collections::Base

      def self.find(*args)
        fail('Trackers 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/tracker.rb
redmine_rest-0.7.0 lib/redmine_rest/models/tracker.rb
redmine_rest-0.6.1 lib/redmine_rest/models/tracker.rb
redmine_rest-0.6.0 lib/redmine_rest/models/tracker.rb