From 5a65a3dc405301c04b4d80000f3b9138c4bad696 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Sun, 27 Oct 2013 13:39:44 +0100 Subject: [PATCH] reroute atom controller to post This is not really good, but okay for the moment until the template is extracted into its own namespace. --- controller/atom.rb | 7 +++++++ lib/router.rb | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 controller/atom.rb diff --git a/controller/atom.rb b/controller/atom.rb new file mode 100644 index 0000000..8828ce9 --- /dev/null +++ b/controller/atom.rb @@ -0,0 +1,7 @@ +module Routes + class Atom + def self.call(session) + Post + end + end +end diff --git a/lib/router.rb b/lib/router.rb index 04fb8b2..8577f49 100644 --- a/lib/router.rb +++ b/lib/router.rb @@ -6,7 +6,7 @@ class Router puts variables.inspect return default_route unless variables && variables[:controller] session.options[:id] = variables[:id] - find variables[:controller] + find(variables[:controller]) end # the namespace of all routes