Class: Mosaic::Modules::Info

Inherits:
Mosaic::Module show all
Defined in:
lib/mosaic/modules/info.rb

Overview

Info page for Mosaic

Instance Attribute Summary

Attributes inherited from Mosaic::Module

#params, #request, #response

Instance Method Summary collapse

Methods inherited from Mosaic::Module

#initialize, provide_middleware, respond_to

Constructor Details

This class inherits a constructor from Mosaic::Module

Instance Method Details

#handleObject

Returns the contained view for the page



8
9
10
11
# File 'lib/mosaic/modules/info.rb', line 8

def handle
  @response.layout = contained_view("info/layout.html.erb")
  @response.content = contained_view("info/index.html.erb")
end

#infoObject

A hash of info used by the info page



14
15
16
17
18
# File 'lib/mosaic/modules/info.rb', line 14

def info
  {
    root: File.expand_path("../../../../", __FILE__)
  }
end