mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 03:07:17 -05:00
`ActiveModel` doesn’t have a `symbol` type by default, but it can be quite handy for contracts from our service framework. This way, it’s easy to get a symbol from an attribute. Any non-blank value will get converted to a symbol by being converted to a string before. A blank value will return `nil`.