Runtime assertions for Ruby literal.fun
ruby
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update relation_type.rb

+4 -4
+4 -4
lib/literal/rails/relation_type.rb
··· 10 10 11 11 def ===(value) 12 12 case value 13 - when ActiveRecord::Relation, ActiveRecord::Associations::CollectionProxy, ActiveRecord::AssociationRelation 14 - @model_class == value.model || value.model < @model_class 15 - else 16 - false 13 + when ActiveRecord::Relation, ActiveRecord::Associations::CollectionProxy, ActiveRecord::AssociationRelation 14 + @model_class == value.model || value.model < @model_class 15 + else 16 + false 17 17 end 18 18 end 19 19 end