diff options
author | David Gay <david@davidgay.org> | 2021-06-02 22:15:02 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-02 22:15:02 -0400 |
commit | 4c96893a114059dc4e748307c6d046ec1faa778f (patch) | |
tree | 10e3af95e7a3749e6bd0d1ab63fffebf5b567258 /app/models/concerns | |
parent | 6ec57509c6f1d44fb80a1cb2ae020b8a033dd370 (diff) |
Magiculture
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/has_whatnot.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/concerns/has_whatnot.rb b/app/models/concerns/has_whatnot.rb index a4dcfa0..289fe40 100644 --- a/app/models/concerns/has_whatnot.rb +++ b/app/models/concerns/has_whatnot.rb @@ -5,5 +5,9 @@ module HasWhatnot def whatnot @whatnot ||= super.is_a?(Hash) ? super.deep_symbolize_keys! : nil end + + def tags + whatnot[:tags] if whatnot + end end end |