activerecord-collections 0.0.19 → 0.0.20

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: 4104d52b255567a6d3cd51cb81d468277ccd9bfc
4
- data.tar.gz: 79c9a5ffe65b546579fc3eb0a2f1e61d188485bf
3
+ metadata.gz: e28b341879dd707e39def6507399f1234cb6a192
4
+ data.tar.gz: 0fb3b1b2f1903ace1d9c854e6e8590fa51e15ba5
5
5
  SHA512:
6
- metadata.gz: 88398faa6910b656103e76eb0c06f9e2a9ba6a2f6aa72b0f20ff013501f2df99df364c1f7273546587ed677a5987e5fc143333d3cd6237fe873e6055648474f7
7
- data.tar.gz: 5de4df32a24b064eb2aafdad2018525e009c5531d574c11fabbebef28dbe90a6d4a7b143756fbf03c5b302aac3dcd09a2a1245fff2cbfd9bad2f269323719230
6
+ metadata.gz: 653911ecdedb4836c23db84d81846a34ce7dcac70f9497d3e58282f9cb5130e10617e0b84a357dbdb4721ffb456c07992516138350e53883c62bf616a98374dc
7
+ data.tar.gz: 1e7f93b059c156f7281abb62f42e35738ae74ea4efa3dc0cc5edd5dfef8bb070c857f5e76b981fa381b0b08d7aceb48e88d505f8f001589e942eb8ec892e7a7f
@@ -23,7 +23,7 @@ module ActiveRecord
23
23
  if @collectable.nil?
24
24
  begin
25
25
  klass = self.name.demodulize.singularize.constantize
26
- @collectable = klass if !klass.nil? && klass.ancestors.include?(ActiveRecord::Base)
26
+ @collectable = klass if !klass.nil?# && klass.ancestors.include?(ActiveRecord::Base)
27
27
  rescue
28
28
  # singularized class doesn't exist
29
29
  end
@@ -48,6 +48,10 @@ module ActiveRecord
48
48
  records
49
49
  end
50
50
 
51
+ def loaded?
52
+ relation.loaded?
53
+ end
54
+
51
55
  def select(*args)
52
56
  dup.select!(*args)
53
57
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Collections
3
- VERSION = '0.0.19'
3
+ VERSION = '0.0.20'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-collections
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec