class Edools::Core::Enrollment
Public Class Methods
collection_path(prefix_options = {}, query_options = nil)
click to toggle source
Calls superclass method
# File lib/edools/core/enrollment.rb, line 9 def self.collection_path(prefix_options = {}, query_options = nil) super student_id = prefix_options[:student_id] || query_options.try(:[], :student_id) if student_id "/students/#{student_id}/#{collection_name}.#{format.extension}#{query_string(query_options)}" else "/#{collection_name}.#{format.extension}#{query_string(query_options)}" end end