Add polls plugin

This commit is contained in:
Patrick Gansterer 2017-11-05 22:16:32 +01:00
parent 42e0ce86a8
commit d476993321
29 changed files with 787 additions and 0 deletions

View file

@ -210,6 +210,12 @@ class User < ApplicationRecord
end
end
def self.custom_fields
fields = FoodsoftConfig[:custom_fields] && FoodsoftConfig[:custom_fields][:user]
return [] unless fields
fields.map(&:deep_symbolize_keys)
end
# XXX this is view-related; need to move out things like token_attributes
# then this can be removed
def display