From f1843848ae03cf738bc45deba48f15c4979fbff4 Mon Sep 17 00:00:00 2001 From: Istvan Hoka Date: Tue, 1 Dec 2009 21:19:20 +0200 Subject: [PATCH] Version bump. Updated Readme, added app/presenters to Rails load_path. --- README.md | 1 + VERSION | 2 +- init.rb | 2 +- lib/viewtastic.rb | 4 ++++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cd33212..5a7ef21 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ A Presenter inherits from `Viewtastic::Base` and should use the `presents` metho end This gives you several 'magic' methods: + * All attributes of comment with the prefix 'comment'. For instance: `comment_body`, `comment_post`, `comment_created_at`. * `comment_dom_id` is the same as calling `dom_id(comment)` in a view. diff --git a/VERSION b/VERSION index 6e8bf73..17e51c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 diff --git a/init.rb b/init.rb index 3c19a74..e94f540 100644 --- a/init.rb +++ b/init.rb @@ -1 +1 @@ -# Include hook code here +Rails.configuration.load_paths << "app/presenters" diff --git a/lib/viewtastic.rb b/lib/viewtastic.rb index 0166495..ac0cf93 100644 --- a/lib/viewtastic.rb +++ b/lib/viewtastic.rb @@ -1,3 +1,7 @@ require File.dirname(__FILE__) + "/viewtastic/activation" require File.dirname(__FILE__) + "/viewtastic/base" require File.dirname(__FILE__) + "/duck_punches/array/each_with_presenter" + +module Viewtastic + VERSION = "0.1.1" +end \ No newline at end of file