Module: Judge::Html
Instance Method Summary collapse
Instance Method Details
#attrs_for(object, method) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/judge/html.rb', line 5 def attrs_for(object, method) { 'data-validate' => ValidatorCollection.new(object, method).to_json, 'data-klass' => object.class.name } end |