shoppe 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/shoppe/application_controller.rb +2 -0
- data/app/models/shoppe/product.rb +7 -2
- data/config/locales/pt-BR.yml +1 -0
- data/lib/shoppe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 014344c47bbbb180aaaaae7a97080439479c52bc
|
4
|
+
data.tar.gz: 027ad42e612ff511c693b1b20abec1cef3b30215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ee8152ec86c82a103f3f44f3b45852e36846a9f25218b5720ae762346f1f2fc31c72d4535fe30231f577c0135057a6378362454e93f687c59f371b3bf291c7
|
7
|
+
data.tar.gz: 1c7b097aedf74a907c00ef5ff0d6a2299b895188382660e468f5f4f10271db26c1580bfc59531f18f1b8fd0e753f35042a7baf4caf8675779b90b7a2cab76d05
|
@@ -115,14 +115,19 @@ module Shoppe
|
|
115
115
|
end
|
116
116
|
|
117
117
|
# Return attachment for the default_image role
|
118
|
-
#
|
118
|
+
#
|
119
119
|
# @return [String]
|
120
120
|
def default_image
|
121
121
|
self.attachments.for("default_image")
|
122
122
|
end
|
123
123
|
|
124
|
+
# Set attachment for the default_image role
|
125
|
+
def default_image_file=(file)
|
126
|
+
self.attachments.build(:file => file, :role => 'default_image')
|
127
|
+
end
|
128
|
+
|
124
129
|
# Return attachment for the data_sheet role
|
125
|
-
#
|
130
|
+
#
|
126
131
|
# @return [String]
|
127
132
|
def data_sheet
|
128
133
|
self.attachments.for("data_sheet")
|
data/config/locales/pt-BR.yml
CHANGED
data/lib/shoppe/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoppe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|