Class: Boar::Services::Pages
- Defined in:
- app/models/boar/services/pages.rb
Instance Attribute Summary
Attributes inherited from Generic
#configuration, #controller, #options, #params
Instance Method Summary collapse
Methods inherited from Generic
#handle_authentication, #handle_error, #handler_for, #initialize, #run
Methods included from Utils::Basic
#ensure_hash, #get_option, #interpolate
Constructor Details
This class inherits a constructor from Boar::Services::Generic
Instance Method Details
#main ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/models/boar/services/pages.rb', line 10 def main # Get the path path = @controller.params[:path] # Map the path path = self.handler_for(:pages_mapper, ).call(self, path) # Handle ACL for the path self.handle_authentication(path, @options) @controller.render(file: search_page(path)) if !@controller.performed? end |