8f23bf758e0b2b31c5e8b76c25beaa26018d35d0Eugen Kuksaclass RepositoryDirectoriesController < InheritedResources::Base
8f23bf758e0b2b31c5e8b76c25beaa26018d35d0Eugen Kuksa before_filter :check_write_permissions, only: [:new, :create]
8f23bf758e0b2b31c5e8b76c25beaa26018d35d0Eugen Kuksa @repository_directory ||= RepositoryDirectory.new(params.merge(
8f23bf758e0b2b31c5e8b76c25beaa26018d35d0Eugen Kuksa success_message = t('repository_directory.create', name: resource)
8f23bf758e0b2b31c5e8b76c25beaa26018d35d0Eugen Kuksa success_message << " #{create_json_data_additional_text}"
8f23bf758e0b2b31c5e8b76c25beaa26018d35d0Eugen Kuksa url: fancy_repository_path(repository, path: resource.path),
8f23bf758e0b2b31c5e8b76c25beaa26018d35d0Eugen Kuksa created_directories = resource.created_directories
8f23bf758e0b2b31c5e8b76c25beaa26018d35d0Eugen Kuksa directories: created_directories.map { |d| "\"#{d}\"" }.join(', '))