blob: 289fe405b39cca568977c7ef6cd071a1be5e0d28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module HasWhatnot
extend ActiveSupport::Concern
included do
def whatnot
@whatnot ||= super.is_a?(Hash) ? super.deep_symbolize_keys! : nil
end
def tags
whatnot[:tags] if whatnot
end
end
end
|