Missed a named_scope
This commit is contained in:
parent
07a7cddb2d
commit
36ab2f0066
@ -23,7 +23,7 @@ class ContentInstance
|
|||||||
before_create :add_to_list_bottom
|
before_create :add_to_list_bottom
|
||||||
|
|
||||||
## named scopes ##
|
## named scopes ##
|
||||||
named_scope :latest_updated, :order_by => [[:updated_at, :desc]], :limit => Locomotive.config.lastest_items_nb
|
scope :latest_updated, :order_by => [[:updated_at, :desc]], :limit => Locomotive.config.lastest_items_nb
|
||||||
|
|
||||||
## methods ##
|
## methods ##
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user