caboose-cms 0.8.21 → 0.8.22

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: e43c9cfb171fd6b5ce8af9a31b8a94f7e8dfad62
4
- data.tar.gz: d3805ca54e8a82f6186744af0376fbec10125d9c
3
+ metadata.gz: 9b23c91e422882aa7a2522728cece022664c14eb
4
+ data.tar.gz: 473227f99ed02278a43085af70c56d649313b2aa
5
5
  SHA512:
6
- metadata.gz: cf8ffa5ca186333a8ae4677dd07eb14aeda4c306ff3357e9f6ea828dbbbad041ed9f143b5e23852fb833384b4cd216ddcc4a4513f3f9401b20ad4d1050193936
7
- data.tar.gz: 6cea09c672f9b096f1c3f9fce48da1d764bc3c58aa1a3f8bf3f90f20fdf60095691b30b0f6e6d8cf9eeab0e3d27dccea8ef72d21fae0857a2c44c0cac0928c9e
6
+ metadata.gz: aef89e51edc32c7c82a85fa53c5f9125a85dadbb788a297016931c77d2741f8acf5da46f787bc8fcad47472aca3b633577e9f7c096b366b351d28c74c7401a70
7
+ data.tar.gz: 31da9f3576d404741db9b19c0d7f43abdc439c4f645a1dacd293667125e362217fc52d9e9688ce1e4e9773cfd8ab134d085f2c2d2a8dd326a829dd2f235d70d9
@@ -57,7 +57,9 @@ module Caboose
57
57
  :status => 'pending'
58
58
  )
59
59
  end
60
+
60
61
  GA.delay(:queue => 'caboose_store').event(@site.id, 'cart', 'add', "Product #{v.product.id}, Variant #{v.id}")
62
+
61
63
  render :json => {
62
64
  :success => li.save,
63
65
  :errors => li.errors.full_messages,
@@ -205,7 +205,7 @@ module Caboose
205
205
  # @route GET /admin/sites/options
206
206
  def options
207
207
  return if !user_is_allowed('sites', 'view')
208
- render :json => { :error => "You are not allowed to manage sites." } and return if !@site.is_master
208
+ render :json => { :error => "You are not allowed to manage sites." } and return if !logged_in_user.is_super_admin?
209
209
 
210
210
  options = Site.reorder('name').all.collect { |s| { 'value' => s.id, 'text' => s.name }}
211
211
  render :json => options
@@ -27,7 +27,13 @@ class Caboose::Media < ActiveRecord::Base
27
27
  :sort_order,
28
28
  :processed,
29
29
  :image_content_type,
30
- :file_content_type
30
+ :file_content_type,
31
+ :image_file_name,
32
+ :image_file_size,
33
+ :image_updated_at,
34
+ :file_file_name,
35
+ :file_file_size,
36
+ :file_updated_at
31
37
 
32
38
  has_attached_file :sample
33
39
 
@@ -403,7 +403,7 @@ module Caboose
403
403
  @options['additional_where'].each { |x| sql << x }
404
404
  sql_str = sql.join(' and ')
405
405
  sql = [sql_str]
406
- values.each { |v| sql << v }
406
+ values.each { |v| sql << v }
407
407
  return sql
408
408
  end
409
409
 
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.8.21'
2
+ VERSION = '0.8.22'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.21
4
+ version: 0.8.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry