Module: Qcourses::ResourcePaths::ClassMethods

Includes:
UrlHelpers
Defined in:
lib/qcourses/resource_paths.rb

Instance Method Summary collapse

Methods included from UrlHelpers

#admin_edit_request_url, #admin_new_request_url, #admin_request_url, #adminprefix, #basepath, #edit_request_url, #new_request_url, #request_url

Instance Method Details

#resource(name) ⇒ Object



40
41
42
# File 'lib/qcourses/resource_paths.rb', line 40

def resource(name)
  set :basepath, name
end

#resource_admin_on(url) ⇒ Object



43
44
45
# File 'lib/qcourses/resource_paths.rb', line 43

def resource_admin_on(url)
  set :admin_url, url
end