aboutsummaryrefslogtreecommitdiffstats
path: root/generators
diff options
context:
space:
mode:
authordjones <dgjones@gmail.com>2010-09-21 17:20:08 +1200
committerdjones <dgjones@gmail.com>2010-09-21 17:20:08 +1200
commitf036f2a46f5c085505aff507f54518df8e283069 (patch)
tree5dd5bd48059066ceb0fef489d33e42d93e15c5df /generators
parent18b2db513d5241738135cfd330e730c63abec277 (diff)
downloadrefinerycms-blog-f036f2a46f5c085505aff507f54518df8e283069.tar.gz
refinerycms-blog-f036f2a46f5c085505aff507f54518df8e283069.tar.bz2
refinerycms-blog-f036f2a46f5c085505aff507f54518df8e283069.zip
added publish date support. fixes bug where categories were showing posts that were technically supposed to be hidden from the end user
Diffstat (limited to 'generators')
-rw-r--r--generators/refinery_blog/refinery_blog_generator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/generators/refinery_blog/refinery_blog_generator.rb b/generators/refinery_blog/refinery_blog_generator.rb
index 0748bf9..36fce61 100644
--- a/generators/refinery_blog/refinery_blog_generator.rb
+++ b/generators/refinery_blog/refinery_blog_generator.rb
@@ -38,6 +38,7 @@ class RefineryBlogGenerator < Rails::Generator::NamedBase
Rails::Generator::GeneratedAttribute.new('title', 'string'),
Rails::Generator::GeneratedAttribute.new('body', 'text'),
Rails::Generator::GeneratedAttribute.new('draft', 'boolean')
+ Rails::Generator::GeneratedAttribute.new('published_at', 'datetime')
], :id => true
},{
:table_name => 'blog_comments',