caboose-cms 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjM5NDdjM2NhOTc3MzhjZDk1NDI3NTYwZWRmNDAxZGEzNGUwYzJkZQ==
4
+ YzQ3NGMzNjNhNWE2NWYyNGZjNjk1MWQ2ZjJkNWJhNTMyYmU4YmJjMQ==
5
5
  data.tar.gz: !binary |-
6
- NDUyMTQxN2VkYTYyMGQwYTJhM2E5MWUwZTRmNmM3ZjQ2MDQ0MDk2Ng==
6
+ MTZjMzAxMGUxYTFhNDY3ZWY5NGY4NzJhMmViZGU0MjQxZjI4NWRhMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjljMzZmMDZlYzEwMjJhYWUzZWY3ZmI2NDVmZWQxYTI2MjkzMWNmYmI2OWE0
10
- YmY2ZmVlMjg5YzIzNDg1MmNlZjZjMWRmYzUyNjc5ZGZmOWI2NjRhMzYwNjNl
11
- ZjdkYjZhMjAyZDBjNGY0M2NjOTE1YWExOWY1OTNiZGE0ZDI5MjE=
9
+ YjAyNWIzOWIyNTdlNDgwMjFkMjljODcyYjIyNzhjYjRlNGMxNjZhNjgxM2Zj
10
+ MWJhNWU0ZTIxMzBhYzliODliN2U5MTU4NTUwNGQ4ZTJiMTVkMjkxM2UzNTM3
11
+ Y2QwZThhODg0MDIyYTViMDMzNzEzODA2ZDFiMzQ0YTBhYWE0Nzc=
12
12
  data.tar.gz: !binary |-
13
- NDllYmUzMDlmZWIxNjc5NGQ2OTgwNzI1YjFjNzk3ZmVhZTkyZDJlYmM5Yjc3
14
- ZmU0YTc0OGQxMTgwNTM0YTU4NDNiZWFhOWQwM2UwZjlkNjcxOTUyYjAwMjM1
15
- NGJiNDhhNjY5ZWRjNGM5OWRhMTY3ODc0YjEyM2FmZmI4YWY1MGY=
13
+ OWNjNDk4YjhlNGIyNGFiMDM0OGVjMDA5MWU1YWMzNWIxYmQzYmI1NTYyZmRk
14
+ ZTM4OGE2YTExYmNjZTU1MjEyNWI3MDg4YTBjZWVhY2JkNjU3Y2M3MTM1NDM5
15
+ YWE5ZmE1Nzg1ZjUwZGVhN2MzYmMxZTAxM2RmYTM5YWM4OWFiMDE=
@@ -323,7 +323,7 @@ module Caboose
323
323
  })
324
324
  render :json => {
325
325
  :pager => pager,
326
- :models => pager.items.as_json(:includes => [:vendor, :categories])
326
+ :models => pager.items
327
327
  }
328
328
  end
329
329
 
@@ -348,7 +348,7 @@ module Caboose
348
348
  # GET /admin/products/:id/json
349
349
  def admin_json_single
350
350
  p = Product.find(params[:id])
351
- render :json => p.as_json(:includes => [:vendor, :categories])
351
+ render :json => p
352
352
  end
353
353
 
354
354
  # GET /admin/products/:id/general
@@ -63,6 +63,8 @@ module Caboose
63
63
 
64
64
  def as_json(options={})
65
65
  self.attributes.merge({
66
+ :vendor => self.vendor,
67
+ :categories => self.categories,
66
68
  :variants => self.variants,
67
69
  :images => self.product_images
68
70
  })
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.6'
2
+ VERSION = '0.5.7'
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.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry