Class: BlobViewer::License
- Defined in:
- app/models/blob_viewer/license.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Auxiliary
Methods included from Gitlab::Allowable
Methods inherited from Base
auxiliary?, binary?, #binary_detected_after_load?, can_render?, #collapsed?, #initialize, load_async?, loading_partial_path, partial_path, #prepare!, rich?, simple?, text?, #too_large?
Constructor Details
This class inherits a constructor from BlobViewer::Base
Instance Method Details
#license ⇒ Object
12 13 14 |
# File 'app/models/blob_viewer/license.rb', line 12 def license project.repository.license end |
#render_error ⇒ Object
16 17 18 19 20 |
# File 'app/models/blob_viewer/license.rb', line 16 def render_error return if license :unknown_license end |