diff options
| author | hukl <contact@smyck.org> | 2009-09-01 23:10:40 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-09-01 23:10:40 +0200 |
| commit | 656af6c97987e103c30946ec944cac433252fe75 (patch) | |
| tree | 9c56287fe27d98c3f70cead6a24d56d26ea2ea0c /app | |
| parent | c15b66569091bc9fe6adc9b6f446dae2e85fee16 (diff) | |
added default scope for related assets
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/related_asset.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/related_asset.rb b/app/models/related_asset.rb index 036e79e..af09420 100644 --- a/app/models/related_asset.rb +++ b/app/models/related_asset.rb | |||
| @@ -3,4 +3,6 @@ class RelatedAsset < ActiveRecord::Base | |||
| 3 | belongs_to :asset | 3 | belongs_to :asset |
| 4 | 4 | ||
| 5 | acts_as_list :scope => :page_id | 5 | acts_as_list :scope => :page_id |
| 6 | |||
| 7 | default_scope :order => "position ASC" | ||
| 6 | end \ No newline at end of file | 8 | end \ No newline at end of file |
