validates input_options based on input type

This commit is contained in:
Mark Moser committed 2016-08-22 16:28:50 -05:00
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