Skip to content

Commit

Permalink
Extending Toto::Article to include ability to read color from article
Browse files Browse the repository at this point in the history
  • Loading branch information
silasb committed Jul 19, 2012
1 parent a85d204 commit f4ea8e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gems
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
builder
rdiscount
prezjordan-toto
time-ago-in-words
4 changes: 4 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f4ea8e2

Please sign in to comment.