modification for importing links

This commit is contained in:
Harry Bomrah 2014-06-16 17:18:11 +08:00
parent 4e3a86469d
commit 7f58aba75e
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class WebLink
field :url, localize: true field :url, localize: true
field :create_user_id field :create_user_id
field :update_user_id field :update_user_id
field :rss2_id, type: String
scope :can_display, ->{where(is_hidden: false).order_by([:is_top,:desc],[:created_at,:desc])} scope :can_display, ->{where(is_hidden: false).order_by([:is_top,:desc],[:created_at,:desc])}