restpack_account_service 0.0.3 → 0.0.4

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: fd9c6e1c2c1bc0bf018d1ba4c89acef4d256abe4
4
- data.tar.gz: 7080c9ec92f4b768ce3384412bbd384ca09e7153
3
+ metadata.gz: 1bc43eb7e8751ef8c97bb4cd50943616524c1e64
4
+ data.tar.gz: 072c107cd0b80fd82a9332a5b72e91266f7fa86d
5
5
  SHA512:
6
- metadata.gz: 55d9a4bcb7c59737d59dd16f4f1ceb285544ccfe9b8f9d7404451aaa3d19e583931c3b9d9d29258c1f8a346a4c3bfd234f3ba57b3c35ac05a2bda341700d17eb
7
- data.tar.gz: d5cd8d8d752bc9a8688a4d8564f034a2499cd0131bff71e2d307ec5a7ae18711bff51e81952e0c90b4600c12d54ef6963fb33a0edf0d6ea018efc62e6e3eb757
6
+ metadata.gz: ea2c3eeb8f36290e5a144255010e1ef218ba159f264db54e597dcd8fdb0de46f2b472f342678d5ffe84649ce80bddec0b1355d7e5b52ee9d4335f53923ec128a
7
+ data.tar.gz: 94a76cc6f9afdbcbb07961a2ce61f81562d86a639ca6fc944c3ae4dd6f751d89fdf49b7d5c5f1634050164e8e1c9cf7ccca2d83617bda1b3a521b9d036149b69
@@ -7,9 +7,7 @@ module RestPack::Account::Service::Commands
7
7
  end
8
8
 
9
9
  def execute
10
- scope = Models::Account.all
11
- scope = scope.where(application_id: application_id)
12
- result = Serializers::Account.resource(inputs, scope)
10
+ result = Serializers::Account.resource(inputs)
13
11
 
14
12
  if result[:accounts].empty?
15
13
  status :not_found
@@ -6,5 +6,7 @@ module RestPack::Account::Service::Serializers
6
6
  self.key = :accounts
7
7
 
8
8
  attributes :id, :application_id, :created_by, :name, :href
9
+
10
+ can_filter_by :application_id
9
11
  end
10
12
  end
@@ -1,7 +1,7 @@
1
1
  module RestPack
2
2
  module Account
3
3
  module Service
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
7
7
  end
@@ -1,2 +1,2 @@
1
1
  require 'restpack_service'
2
- RestPack::Service::Loader.load 'account', Dir.pwd
2
+ RestPack::Service::Loader.load 'account'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restpack_account_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Joyce
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.0.5
175
+ rubygems_version: 2.0.7
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Accounts