caboose-cms 0.5.22 → 0.5.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/block.rb +2 -2
- data/app/models/caboose/category.rb +1 -1
- data/app/models/caboose/media_file.rb +1 -1
- data/app/models/caboose/media_image.rb +1 -1
- data/app/models/caboose/post.rb +1 -1
- data/app/models/caboose/product_image.rb +1 -1
- data/app/models/caboose/user.rb +1 -1
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjBlMjBhZjA5NmJkNzI2YzhiNjg5MzQwODc3MmMyMDg4MDY4ZDNkZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Zjk4YmI2MjMyMmE2NjhmN2Y4MGNjZTU4YjFiY2FlMDYwMDlkMWEwMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDkzM2Q3YTczODQxMTk3NmZjNGE1ZmVkMWYzNjU3MTE2MWE5ZjM5NGRiZWNm
|
10
|
+
ZWJjNGIyMWE5Nzk5ZDZiMDE2ZWQ3MThhZTc2MDJiNzY4YTQwM2Q0OGI2OWIz
|
11
|
+
ODhjMTYxZjcxYmJkOWFmYmQ4NzYxOGE0NGUwN2Y0OWJlN2QxZGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTk1NzRiYWY2NjE4NWI5Y2ZlMWQ3NWRjZDRkZTAwZmMzMzQwMzQzMjMzMmEy
|
14
|
+
M2Y4ODhkOGUyMzdkMGFhNjk4N2NlMGZlNWE0YTIxYzhkZDcxOWVjOTdhMTFh
|
15
|
+
OWYxMjg2NjFjZTgxNjg5ZmJhOTQyYTBhNWQzMmJiNzEzMzAxMTY=
|
data/app/models/caboose/block.rb
CHANGED
@@ -8,10 +8,10 @@ class Caboose::Block < ActiveRecord::Base
|
|
8
8
|
belongs_to :block_type
|
9
9
|
belongs_to :parent, :foreign_key => 'parent_id', :class_name => 'Caboose::Block'
|
10
10
|
has_many :children, :foreign_key => 'parent_id', :class_name => 'Caboose::Block', :dependent => :delete_all, :order => 'sort_order'
|
11
|
-
has_attached_file :file, :
|
11
|
+
has_attached_file :file, :path => 'uploads/:id.:extension'
|
12
12
|
do_not_validate_attachment_file_type :file
|
13
13
|
has_attached_file :image,
|
14
|
-
:
|
14
|
+
:path => 'uploads/:id_:style.:extension',
|
15
15
|
:default_url => "http://placehold.it/300x300",
|
16
16
|
:styles => {
|
17
17
|
:tiny => '160x120>',
|
@@ -14,7 +14,7 @@ module Caboose
|
|
14
14
|
has_many :category_memberships
|
15
15
|
|
16
16
|
has_attached_file :image,
|
17
|
-
:
|
17
|
+
:path => 'categories/:id_:style.:extension',
|
18
18
|
:default_url => 'http://placehold.it/300x300',
|
19
19
|
:s3_protocol => :https,
|
20
20
|
:styles => {
|
@@ -2,7 +2,7 @@ class Caboose::MediaFile < ActiveRecord::Base
|
|
2
2
|
|
3
3
|
self.table_name = "media_files"
|
4
4
|
belongs_to :media_category
|
5
|
-
has_attached_file :file, :
|
5
|
+
has_attached_file :file, :path => 'media-files/:id.:extension'
|
6
6
|
do_not_validate_attachment_file_type :file
|
7
7
|
attr_accessible :id, :media_category_id, :name, :description
|
8
8
|
|
@@ -6,7 +6,7 @@ class Caboose::MediaImage < ActiveRecord::Base
|
|
6
6
|
self.table_name = "media_images"
|
7
7
|
belongs_to :media_category
|
8
8
|
has_attached_file :image,
|
9
|
-
:
|
9
|
+
:path => 'media-images/:id_:style.:extension',
|
10
10
|
:default_url => 'http://placehold.it/300x300',
|
11
11
|
:styles => {
|
12
12
|
:tiny => '150x200>',
|
data/app/models/caboose/post.rb
CHANGED
@@ -14,7 +14,7 @@ class Caboose::Post < ActiveRecord::Base
|
|
14
14
|
:published,
|
15
15
|
:created_at
|
16
16
|
has_attached_file :image,
|
17
|
-
:
|
17
|
+
:path => 'posts/:id_:style.:extension',
|
18
18
|
:default_url => 'http://placehold.it/300x300',
|
19
19
|
:styles => {
|
20
20
|
:tiny => '75x75>',
|
@@ -20,7 +20,7 @@ module Caboose
|
|
20
20
|
:square_scale_factor
|
21
21
|
|
22
22
|
has_attached_file :image,
|
23
|
-
:
|
23
|
+
:path => 'products/:product_id_:id_:style.:extension',
|
24
24
|
:default_url => 'http://placehold.it/300x300',
|
25
25
|
:s3_protocol => :https,
|
26
26
|
:styles => {
|
data/app/models/caboose/user.rb
CHANGED
@@ -4,7 +4,7 @@ class Caboose::User < ActiveRecord::Base
|
|
4
4
|
has_many :role_memberships
|
5
5
|
has_many :roles, :through => :role_memberships
|
6
6
|
has_attached_file :image,
|
7
|
-
:
|
7
|
+
:path => 'users/:id_:style.:extension',
|
8
8
|
:default_url => 'http://placehold.it/300x300',
|
9
9
|
:styles => {
|
10
10
|
:tiny => '150x200>',
|
data/lib/caboose/version.rb
CHANGED