caboose-cms 0.5.114 → 0.5.115

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
- NmU2YjI4YmE2YzNjZTc2OGJkZjBhMjZhZWZjZDUzYzgyZGYyNDA3Ng==
4
+ ZDQxZTRhZWE2ODNhM2UwMmQ5OGQyZTcxNmNjM2MyY2JiZjA0NTNjNA==
5
5
  data.tar.gz: !binary |-
6
- Y2EyYzJkYTJiMDRhZjliOTQxNjc0ZTQxYWI2Mjk1NjE1YzQ0NTY0Ng==
6
+ ZDI4OWVhYjM4ZGMxNDM3ZWNlM2U3ODE1MzA5MzRjYWQ5Y2U0NjA2Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjlhYjczYzQ3MjI0NWVmMGNmYjFmYzY2NTA4ZjMwYjFhNjUxZWYxYjk2NDRm
10
- NmE5ODA5NmJkNThhYmUxMGQyYjFiOTcyODAzZWZlMDYzOWUxMjVhZTdmMzNi
11
- YmI2NWVhMjE2ZjJhZDViYjJjN2M2MjAxMWQ3YTliY2NmMWNkYjY=
9
+ OWU3YjRiNGE4ZjM4Yzc5MzdmYWY5NzM4MzdkMjJhYjZhNmRhZTU1Y2VhM2M2
10
+ NGVmOGQ1OTM5MTlmM2Q0YmYwZDMzY2I3MDNjMWYzYTFkNGVmZTk3YmYwNzBh
11
+ ZWEyMjcyNDFhMzg1NzE4OWM4MTIzZjI3YWZlNzY1ZmFkMjU1NTU=
12
12
  data.tar.gz: !binary |-
13
- NGY5NDhiOWY2ZTllYzc3ZjAxOWUwODc0Yzk4NzQ1MzRhMjMxNDBjNjdlNDE2
14
- NDc1MGE4MWYyZGZhNDJkMjdkMWZjYWI5ZTJjODAyNWFjNjVmOWE3OGMyYTk1
15
- ZDE3MTM0YWM2MTQ0YWQzOTBhZDE2MTA4OTFkOWEzNDU3MjNmNmE=
13
+ MmQ4NWNjOTIyMTJhMDY3ZTdjNzY0YWI2NDg3NDliYzRhZDYxOTM3MTVlMTRl
14
+ NmNmYTI5MDM1ZDA5MjY2Y2Y1MDc5NjUyZDA2MTc3N2U5MTI1ZWY4YmM1MWEx
15
+ NjBmZjkxMzI0YzIyMjdiODZmNDY0M2FhZTBkNjFhOTFlZTNjNTk=
@@ -314,6 +314,7 @@ module Caboose
314
314
  params.each do |name,value|
315
315
  case name
316
316
  when 'site_id' then product.site_id = value
317
+ when 'vendor_id' then product.vendor_id = value
317
318
  when 'alternate_id' then product.alternate_id = value
318
319
  when 'title' then product.title = value
319
320
  when 'caption' then product.caption = value
@@ -9,8 +9,8 @@ p = @product
9
9
  <select id="vendor" data-product-id="<%= @product.id %>">
10
10
  <option>-- Select a Vendor --</option>
11
11
 
12
- <% Caboose::Vendor.all.each do |vendor| %>
13
- <option value="<%= vendor.id %>" <%= 'selected' if p.vendor_id && p.vendor_id == vendor.id %>><%= vendor.name%></option>
12
+ <% Caboose::Vendor.where(:site_id => @site.id).reorder(:name).all.each do |vendor| %>
13
+ <option value="<%= vendor.id %>" <%= 'selected' if p.vendor_id && p.vendor_id == vendor.id %>><%= vendor.name %></option>
14
14
  <% end %>
15
15
  </select>
16
16
  </p>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.114'
2
+ VERSION = '0.5.115'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.114
4
+ version: 0.5.115
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-24 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg