Runtime assertions for Ruby literal.fun
ruby
5
fork

Configure Feed

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

add `type` (#286)

@joeldrapper I think this would make sense

https://github.com/rails/rails/blob/00cc4ff0259c0185fe08baadaa40e63ea2534f6e/activemodel/lib/active_model/type/value.rb#L32
![CleanShot 2025-02-18 at 21 41
10@2x](https://github.com/user-attachments/assets/64c84b43-f653-4d65-92d7-9c269738e7e2)

authored by

barseek and committed by
GitHub
10044acd a97da9b4

+4
+4
lib/literal/rails/enum_type.rb
··· 6 6 super() 7 7 end 8 8 9 + def type 10 + :literal_enum 11 + end 12 + 9 13 def cast(value) 10 14 case value 11 15 when nil