Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit f4ea8e290c103a2794d4a427e76cccd8c503506c 1 parent a85d204
@silasb silasb authored
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
4 config.ru
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.