Skip to content
Snippets Groups Projects

Refactor: remove duplication, remove unused code, etc.

Merged Eric Franz requested to merge refactor into master
11 files
+ 93
436
Compare changes
  • Side-by-side
  • Inline
Files
11
+ 11
0
@@ -3,6 +3,17 @@ require 'delegate'
module AweSim
# decorator of App to add URL
class AppWithUrl < Delegator
def self.at(path: nil, router: nil)
AweSim::AppWithUrl.new(AweSim::App.at(path: path), router)
end
def self.all_at(path: nil, router: nil)
AweSim::App.all_at(path: path).map do |app|
AweSim::AppWithUrl.new(app, router)
end
end
def initialize(app, router)
super(app)
Loading