Sha256: 0e32641f233680b71997ffc3e6d40f7714fa6e7248182b5051339876f57b59c5

Contents?: true

Size: 435 Bytes

Versions: 10

Compression:

Stored size: 435 Bytes

Contents

require 'active_resource'

module RedmineRest
  module Models
    module Collections
      #
      # Methods for issue collections
      #
      class Issue < ActiveResource::Collection
        def group_by_project
          group_by(&:project)
        end

        def group_by_author
          group_by(&:author)
        end

        def group_by_assigned_to
          group_by(&:assigned_to)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
redmine_rest-0.8.0 lib/redmine_rest/models/collections/issue.rb
redmine_rest-0.7.0 lib/redmine_rest/models/collections/issue.rb
redmine_rest-0.6.1 lib/redmine_rest/models/collections/issue.rb
redmine_rest-0.6.0 lib/redmine_rest/models/collections/issue.rb
redmine_rest-0.5.2 lib/redmine_rest/models/collections/issue.rb
redmine_rest-0.5.1 lib/redmine_rest/models/collections/issue.rb
redmine_rest-0.5.0 lib/redmine_rest/models/collections/issue.rb
redmine_rest-0.4.0 lib/redmine_rest/models/collections/issue.rb
redmine_rest-0.3.0 lib/redmine_rest/models/collections/issue.rb
redmine_rest-0.2.0 lib/redmine_rest/models/collections/issue.rb