Permalink
Browse files

Extending Toto::Article to include ability to read color from article

  • Loading branch information...
1 parent a85d204 commit f4ea8e290c103a2794d4a427e76cccd8c503506c @silasb silasb committed Jul 19, 2012
Showing with 4 additions and 1 deletion.
  1. +0 −1 .gems
  2. +4 −0 config.ru
View
1 .gems
@@ -1,4 +1,3 @@
builder
rdiscount
-prezjordan-toto
time-ago-in-words
View
@@ -1,6 +1,10 @@
require 'toto'
require 'time-ago-in-words'
+class Toto::Article
+ def color; self[:color] end
+end
+
# Rack config
use Rack::Static, :urls => ['/css', '/js', '/images', '/favicon.ico'], :root => 'public'
use Rack::CommonLogger

0 comments on commit f4ea8e2

Please sign in to comment.