class ParsleySimpleForm::Constraints::Basics::MaxcheckConstraint
Public Instance Methods
html_attributes()
click to toggle source
# File lib/parsley_simple_form/constraints/basics/maxcheck_constraint.rb, line 11 def html_attributes attributes = { :'data-parsley-maxcheck' => @options[:maxcheck], :'data-parsley-maxcheck-message' => I18n::translate('form_validation.message.maxcheck', maxcheck: @options[:maxcheck]) } attributes.merge!({:'data-parsley-group' => @options[:check_group]}) unless @options[:check_group].nil? attributes end
match?()
click to toggle source
# File lib/parsley_simple_form/constraints/basics/maxcheck_constraint.rb, line 6 def match? return false if @options.nil? !@options[:maxcheck].nil? end