ecm_pictures 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/ecm/pictures/picture.rb +3 -0
- data/lib/ecm/pictures/version.rb +1 -1
- metadata +1 -1
@@ -7,6 +7,9 @@ class Ecm::Pictures::Picture < ActiveRecord::Base
|
|
7
7
|
# acts as list
|
8
8
|
acts_as_list :scope => :picture_gallery
|
9
9
|
|
10
|
+
# default scope
|
11
|
+
default_scope :order => "picture_gallery_id, position"
|
12
|
+
|
10
13
|
# friendly id
|
11
14
|
extend FriendlyId
|
12
15
|
friendly_id :name, :use => :slugged
|
data/lib/ecm/pictures/version.rb
CHANGED