Module: WithSlug
- Extended by:
- ActiveSupport::Concern
- Included in:
- Content
- Defined in:
- app/models/concerns/with_slug.rb
Overview
TODO may use mumukit slug
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#import! ⇒ Object
10 11 12 |
# File 'app/models/concerns/with_slug.rb', line 10 def import! import_from_json! Mumukit::Platform.bibliotheca_bridge.send(self.class.name.underscore, slug) end |
#slug_parts ⇒ Object
14 15 16 17 |
# File 'app/models/concerns/with_slug.rb', line 14 def slug_parts org, repo = slug.split('/') {organization: org, repository: repo} end |