spree_api 2.1.9 → 2.1.10

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: 145bd09ca71c46ae9a122dc9b6012f113ec780c7
4
- data.tar.gz: 9ae012794495bb8bc9e2490dd5e92d7bd5b305a0
3
+ metadata.gz: c1f9b1298a2dd86ee6a66b6bc12757ec94e58205
4
+ data.tar.gz: 13eec3f604d5b8fa799ead9414c5e7ad81df642f
5
5
  SHA512:
6
- metadata.gz: f3dd000b57e66fb92fdeba989cbd8cdb4cdbe9bf4436d4172a6d29a21523c3920f4a9c33738b88ee3fbd880b3cc1c315e6f163420d3c84b99c832b9d51a9c5f0
7
- data.tar.gz: 0b599e728184732eb8b3ab1218fe3679ca19f68b2a435300e18d5a7a137b235cb3e72cf33bd6db2f7c653f6c24323389baed28833d155331ff19517708fbc704
6
+ metadata.gz: e1178d2e88a2a51d685616b687663103ab35457404e068614597d53940f660c20b6e736196d6ab90300fe8dd6cffec5212c30aa2bd3d15a823810206f9f5ee5f
7
+ data.tar.gz: e7eb123b0c0d71d3f14bf57dfe37f067b613916c577b46769d6f8f4ce4b71c60a770bf56a815959cd41a838528d291d515042b9169ce3f1b7999d870f01d9844
@@ -3,9 +3,9 @@ module Spree
3
3
  class OptionTypesController < Spree::Api::BaseController
4
4
  def index
5
5
  if params[:ids]
6
- @option_types = Spree::OptionType.accessible_by(current_ability, :read).where(:id => params[:ids].split(','))
6
+ @option_types = Spree::OptionType.includes(:option_values).accessible_by(current_ability, :read).where(id: params[:ids].split(','))
7
7
  else
8
- @option_types = Spree::OptionType.accessible_by(current_ability, :read).load.ransack(params[:q]).result
8
+ @option_types = Spree::OptionType.includes(:option_values).accessible_by(current_ability, :read).load.ransack(params[:q]).result
9
9
  end
10
10
  respond_with(@option_types)
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Bigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-19 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.9
19
+ version: 2.1.10
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.9
26
+ version: 2.1.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rabl
29
29
  requirement: !ruby/object:Gem::Requirement