mongoid_silo 0.0.5 → 0.0.6

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.
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/musicglue/mongoid_silo)
1
2
  # MongoidSilo
2
3
 
3
4
  MongoidSilo creates and transparently manages static representations of a model - e.g. for creating Feeds or other diverse datastructures.
data/app/models/silo.rb CHANGED
@@ -21,5 +21,9 @@ class Silo
21
21
  def for_id_and_class_with_name id, class_name, silo_name
22
22
  where(item_class: class_name, item_id: id, silo_type: silo_name).first
23
23
  end
24
+
25
+ def for_id_and_name_with_no_class id, silo_name
26
+ where(item_id: id, silo_type: name).first
27
+ end
24
28
  end
25
29
  end
@@ -1,3 +1,3 @@
1
1
  module MongoidSilo
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_silo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: