validates input_options based on input type
This commit is contained in:
1 parent
404555f674
commit
bdec83b3b6
5 files changed
+89
-7
No files matched your search
@@ -0,0 +1,6 @@
|
||||
class InputOptionsValidatable
|
||||
include ActiveModel::Validations
|
||||
attr_accessor :input_type
|
||||
attr_accessor :input_options
|
||||
validates :input_options, input_options_presence: true
|
||||
end
|
||||
Reference in new issue
Block a user