Class: Oasis::Routes

Inherits:
Object
  • Object
show all
Defined in:
lib/oasis/routes.rb

Overview

This class is harnessed by plugins/apps/engines to define and freeze a route grouping it wishes to define.

Class Method Summary collapse

Class Method Details

.reset!Object



12
13
14
# File 'lib/oasis/routes.rb', line 12

def self.reset!
  self.apps = {}
end

.routing_for(name, &blk) ⇒ Object



7
8
9
10
# File 'lib/oasis/routes.rb', line 7

def self.routing_for(name, &blk)
  self.apps[name] = blk
  Oasis::Logger.debug "loaded routes for app: #{name}"
end