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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c012b24bf7d34a02496487c0c0df907c4f70f59e
4
- data.tar.gz: 686496219cad3da880f86b89a94b52fc8ca7c552
3
+ metadata.gz: 014344c47bbbb180aaaaae7a97080439479c52bc
4
+ data.tar.gz: 027ad42e612ff511c693b1b20abec1cef3b30215
5
5
  SHA512:
6
- metadata.gz: 9aa31f104d4b05d855e3efeaa79ef5cf446697627ee72f498863b4a1ee96063025a1223238318f4768c0d598e38ad14af12d67a2adad926f47bf185b1dd6def9
7
- data.tar.gz: 6f3be3df3f66cf26e0f5b6dba2a0d754f22c476eaa56b0735c1ba2fdb56fa77e013d404e3595ecc06f0ea2f526ed509d5e1264538c88544301aa7bb6c329e0a8
6
+ metadata.gz: 29ee8152ec86c82a103f3f44f3b45852e36846a9f25218b5720ae762346f1f2fc31c72d4535fe30231f577c0135057a6378362454e93f687c59f371b3bf291c7
7
+ data.tar.gz: 1c7b097aedf74a907c00ef5ff0d6a2299b895188382660e468f5f4f10271db26c1580bfc59531f18f1b8fd0e753f35042a7baf4caf8675779b90b7a2cab76d05
@@ -1,6 +1,8 @@
1
1
  module Shoppe
2
2
  class ApplicationController < ActionController::Base
3
3
 
4
+ protect_from_forgery
5
+
4
6
  before_filter :login_required
5
7
 
6
8
  rescue_from ActiveRecord::DeleteRestrictionError do |e|
@@ -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")
@@ -604,6 +604,7 @@ pt-BR:
604
604
  users: Usuários
605
605
  countries: Países
606
606
  settings: Preferências
607
+ customers: Clientes
607
608
 
608
609
  settings:
609
610
 
@@ -1,3 +1,3 @@
1
1
  module Shoppe
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-07-07 00:00:00.000000000 Z
12
+ date: 2015-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails