From 9d8a0c7bb8cea0ba770c60276363f60245424b6d Mon Sep 17 00:00:00 2001 From: Jeff Casimir Date: Tue, 16 Aug 2011 21:24:29 -0700 Subject: [PATCH 1/2] Fixing USAGE to respect renaming --- lib/generators/draper/decorator/USAGE | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generators/draper/decorator/USAGE b/lib/generators/draper/decorator/USAGE index 5793a76..5452e0c 100644 --- a/lib/generators/draper/decorator/USAGE +++ b/lib/generators/draper/decorator/USAGE @@ -1,7 +1,7 @@ Description: - The draper:model generator creates a decorator model in /app/decorators. + The draper:decorator generator creates a decorator model in /app/decorators. Examples: - rails generate draper:model Article + rails generate draper:decorator Article file: app/decorators/article_decorator.rb \ No newline at end of file From 9aee1848bc3773e5bde20f6cb5b6b9fe53ba5010 Mon Sep 17 00:00:00 2001 From: Jeff Casimir Date: Tue, 16 Aug 2011 21:25:32 -0700 Subject: [PATCH 2/2] Fix orphaned require' --- lib/draper.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/draper.rb b/lib/draper.rb index 2673616..a75c609 100644 --- a/lib/draper.rb +++ b/lib/draper.rb @@ -3,6 +3,5 @@ require 'draper/system' require 'draper/all_helpers' require 'draper/base' require 'draper/lazy_helpers' -require 'draper/railtie' Draper::System.setup \ No newline at end of file