lib/redmine_rest/models/tracker.rb in redmine_rest-0.5.2 vs lib/redmine_rest/models/tracker.rb in redmine_rest-0.6.0

- old
+ new

@@ -1,22 +1,20 @@ require 'active_resource' -require_relative 'collections/tracker' +require_relative 'collections/base' module RedmineRest module Models # # Tracker model # class Tracker < ActiveResource::Base self.format = :xml - self.collection_parser = Collections::Tracker + self.collection_parser = Collections::Base def self.find(*args) fail('Trackers can be loaded as :all only') unless args.size == 1 && args.first == :all - - return @trackers if @trackers - @trackers = super + super end end end end