Created
April 25, 2012 01:47
-
-
Save SammyLin/2485397 to your computer and use it in GitHub Desktop.
now article model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Article < ActiveRecord::Base | |
default_scope order('post_date DESC') | |
#scope :public, where( :post_status => 'public' ) | |
scope :public_article, where( :post_status => 'public' ) | |
mount_uploader :article_image, ArticleImageUploader | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment