mongoid_silo 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- 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