activetrail 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bd58309e9f5d72d377ef69b91b5854146de8648
4
- data.tar.gz: 3cac90806b9ebd65fa3c56fc87125bd3485efd5f
3
+ metadata.gz: 1d87a366015a41f08342510010043e002a872a4d
4
+ data.tar.gz: fd6a2276fe6de804e54aecb6c222c4a8091b14cd
5
5
  SHA512:
6
- metadata.gz: c46939681b533686770a23f92b204597fc933f47d5289bc009ecb1d26140c46d40ca45ab58bb4b5ab258c5572b3d83b346ef808a2dee52586dfa42b8781d62a8
7
- data.tar.gz: 3bd096e7e96d62559e2eea681cc4edbb6baaaa2a223fa3530cdc34f63d1ecf1f281af772501d13ea6d04f4bc0fb9160eba430a30a372716dd814406a411a3410
6
+ metadata.gz: 80d4a416a0ade41c8005007e58d7edd1786bc43c30473d0c57f1e32fb2e6b99d7516c5db57bcf3c0df7e9ca216677a37e6c6e9d4e9b8e952d19c626c343e34ed
7
+ data.tar.gz: 0f6f59c5673ea53dbfa0f054e236cbbec1197feb21f27e01f59936809b1185ff26ef276c4e5bf8f69bfa9c4361b21c0890e9828d3b1a65d0ea9a404da3f153d6
@@ -23,16 +23,11 @@ module ActiveTrail
23
23
  require 'trailblazer/operation/controller/active_record'
24
24
  base.include Trailblazer::Operation::Controller::ActiveRecord # named instance variables.
25
25
  end
26
-
27
- def scoped_collection
28
- trb_collection "#{trailblazer_operation_name}::Index".constantize do |op|
29
- return @collection
30
- end
31
- end
32
-
33
- def find_collection
26
+
27
+ def collection
28
+ return get_collection_ivar if get_collection_ivar
34
29
  trb_collection "#{trailblazer_operation_name}::Index".constantize do |op|
35
- return @collection
30
+ set_collection_ivar(@collection)
36
31
  end
37
32
  end
38
33
 
@@ -1,3 +1,3 @@
1
1
  module ActiveTrail
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activetrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Celso Fernandes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-03-30 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codeclimate-test-reporter