Sha256: 18d98edff426f6a4b472bbcf59fb7fc5166eb0686a9f4444afe44befd83ebe45
Contents?: true
Size: 863 Bytes
Versions: 34
Compression:
Stored size: 863 Bytes
Contents
require 'mumukit/platform' Mumukit::Platform.configure do |config| # User class must understand # find_by_uid! # for_profile config.user_class_name = 'User' # Organization class must understand # find_by_name! config.organization_class_name = 'Organization' config.application = Mumukit::Platform.laboratory config.web_framework = Mumukit::Platform::WebFramework::Rails end class Mumuki::Laboratory::Engine < ::Rails::Engine config.i18n.available_locales = Mumukit::Platform::Locale.supported end module Mumukit::Platform::OrganizationMapping::Path class << self alias __organization_name__ organization_name def organization_name(request, domain) name = __organization_name__(request, domain) if %w(auth login logout).include? name 'central' else name end end end end
Version data entries
34 entries across 34 versions & 1 rubygems