mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: New "Dropdown" user field type
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
class UserField < ActiveRecord::Base
|
||||
validates_presence_of :name, :description, :field_type
|
||||
has_many :user_field_options, dependent: :destroy
|
||||
accepts_nested_attributes_for :user_field_options
|
||||
|
||||
def self.max_length
|
||||
2048
|
||||
|
||||
2
app/models/user_field_option.rb
Normal file
2
app/models/user_field_option.rb
Normal file
@@ -0,0 +1,2 @@
|
||||
class UserFieldOption < ActiveRecord::Base
|
||||
end
|
||||
Reference in New Issue
Block a user