Registration form more-or-less working, workshop scaffold is up
This commit is contained in:
@@ -56,6 +56,14 @@ class RegistrationFormField < ActiveRecord::Base
|
||||
o
|
||||
end
|
||||
|
||||
def repeats?()
|
||||
field_type.to_s == 'multiple' && selection_type.to_s != 'select'
|
||||
end
|
||||
|
||||
def is_array?()
|
||||
field_type.to_s == 'multiple' && selection_type.to_s != 'radio_button'
|
||||
end
|
||||
|
||||
private
|
||||
def get_from_options(key)
|
||||
if options
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
class Workshop < ActiveRecord::Base
|
||||
end
|
||||
Reference in New Issue
Block a user