Class: EgovUtils::Redmine::Issue

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/egov_utils/redmine/issue.rb

Class Method Summary collapse

Class Method Details

.collection_path(prefix_options = {}, query_options = nil) ⇒ Object



20
21
22
23
24
25
# File 'lib/egov_utils/redmine/issue.rb', line 20

def self.collection_path(prefix_options = {},query_options=nil)
  super
  query_options[:query_id] ||= EgovUtils::Redmine.config['query_id'] if EgovUtils::Redmine.config['query_id']
  prefix_options[:project_id] ||= EgovUtils::Redmine.config['project_id']
  "/projects/#{prefix_options[:project_id]}/#{collection_name}.#{format.extension}#{query_string(query_options)}"
end

.instantiate_collection(collection, original_params = {}, prefix_options = {}) ⇒ Object



27
28
29
30
# File 'lib/egov_utils/redmine/issue.rb', line 27

def self.instantiate_collection(collection, original_params = {}, prefix_options = {})
  collection = collection[collection_name] if collection[collection_name].is_a?(Array)
  super(collection, original_params, prefix_options)
end