Searched defs:resource (Results 1 - 7 of 7) sorted by relevance
/ontohub/app/controllers/ |
H A D | history_controller.rb | 10 def resource method in class:HistoryController
|
H A D | diffs_controller.rb | 10 resource.compute 11 @changed_files = resource.changed_files 16 def resource method in class:DiffsController
|
H A D | oops_requests_controller.rb | 7 raise ActiveRecord::RecordNotFound, 'Not Found' unless resource 9 respond_with resource 16 respond_with(*resource_chain, ontology_version, resource) 34 def resource method in class:OopsRequestsController
|
H A D | proofs_controller.rb | 11 if resource.valid? 12 resource.save! 23 def resource method in class:ProofsController 24 @resource ||= resource_class.new(params) 28 resource.ontology 32 if resource.theorem? 33 url_for([resource.proof_obligation, :proof_attempts]) 35 url_for([resource.proof_obligation.ontology, :theorems])
|
H A D | repository_directories_controller.rb | 9 if resource.valid? 10 resource.save 19 def resource method in class:RepositoryDirectoriesController 25 @repository ||= resource.repository 29 success_message = t('repository_directory.create', name: resource) 35 url: fancy_repository_path(repository, path: resource.path), 36 text: resource.name, 42 created_directories = resource.created_directories
|
H A D | repositories_controller.rb | 11 resource.user = current_user 19 resource.convert_to_local! if params[:un_mirror] 31 resource.destroy_asynchronously 35 redirect_to resource 39 resource.undestroy 41 resource.reload 43 redirect_to resource 52 def resource method in class:RepositoriesController
|
H A D | files_controller.rb | 15 ontology = resource.ontologies.first.children.where(name: request.query_string).first 37 if resource.valid? 39 if ontology = repository.ontologies.with_path(resource.target_path).without_parent.first 42 redirect_to fancy_repository_path(repository, path: resource.target_path) 51 if resource.valid? 53 redirect_to fancy_repository_path(repository, path: resource.target_path) 68 def resource method in class:FilesController 120 request.accepts.first == Mime::HTML || !resource.file?
|
Completed in 40 milliseconds