Permalink
Browse files

git add .

  • Loading branch information...
1 parent bdc8d14 commit 9ce7886946858f7b7a3b0d11e9ec056f55b518b0 @dux committed Feb 23, 2014
Showing with 0 additions and 38 deletions.
  1. +0 −38 lib/aspect.rb
View
@@ -1,15 +1,3 @@
-# class RootController < ApplicationController
-#
-# #= foo: bar
-# #= get
-# def index
-# render template: '/root'
-# end
-# end
-#
-# RootController.aspects
-# {"index":{"get":true,"foo":"bar"}}
-
class Aspect
@@data = {}
@@ -68,29 +56,3 @@ def self.aspects
Aspect.load_from_file caller[0].split(':')[0]
end
end
-
-# class ActionDispatch::Routing::Mapper
-#
-# # in routes.rb
-# # aspect_routes :restaurants, :r # /r/14 => 'restaurants#show'
-# # aspect_routes :restaurants
-# def aspect_routes(controller, base_route=nil)
-# base_route ||= controller
-# for key, val in "#{controller.to_s.classify.pluralize}Controller".constantize.aspects
-
-# # map only get routes
-# next unless val[:get]
-
-# case key.to_sym
-# when :index
-# get base_route.to_s => "#{controller}#index"
-# when :show
-# get "#{base_route}/:id" => "#{controller}#show"
-# else
-# route_path = val[:collection] ? "#{base_route}#{key}" : "#{base_route}/:id/#{key}"
-# get route_path => "#{controller}##{key}"
-# end
-#
-# end
-# end
-# end

0 comments on commit 9ce7886

Please sign in to comment.