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 +1 -0
- data/app/models/silo.rb +4 -0
- data/lib/mongoid_silo/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
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
|
data/lib/mongoid_silo/version.rb
CHANGED