Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gangelo committed Dec 28, 2023
1 parent 7684f64 commit 2dcecdb
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# DecoLite

[![GitHub version](http://badge.fury.io/gh/gangelo%2Fdeco_lite.svg)](https://badge.fury.io/gh/gangelo%2Fdeco_lite)

[![Gem Version](https://badge.fury.io/rb/deco_lite.svg)](https://badge.fury.io/rb/deco_lite)

[![Ruby](https://github.com/gangelo/deco_lite/actions/workflows/ruby.yml/badge.svg)](https://github.com/gangelo/deco_lite/actions/workflows/ruby.yml)
[![GitHub version](http://badge.fury.io/gh/gangelo%2Fdeco_lite.svg?refresh=1)](https://badge.fury.io/gh/gangelo%2Fdeco_lite)
[![Gem Version](https://badge.fury.io/rb/deco_lite.svg?refresh=1)](https://badge.fury.io/rb/deco_lite)
[![](http://ruby-gem-downloads-badge.herokuapp.com/deco_lite?type=total)](http://www.rubydoc.info/gems/deco_lite/)
[![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/deco_lite/)

[![Report Issues](https://img.shields.io/badge/report-issues-red.svg)](https://github.com/gangelo/deco_lite/issues)

[![License](http://img.shields.io/badge/license-MIT-yellowgreen.svg)](#license)

## Introduction
Expand Down Expand Up @@ -184,9 +180,9 @@ One caveat to note is when using Rails custom validators with `validates_with`.
class Model < DecoLite::Model
validates :first, :last, :address, presence: true
validates :age, numericality: true
# When using Rails custom validators via validates_with,
# When using Rails custom validators via validates_with,
# pass the attribute name(s) being validated in an Array
# via the #options Hash, with a key of either :attributes
# via the #options Hash, with a key of either :attributes
# or :fields. For example:
validates_with CustomFirstNameValidator, attributes: [:first]
validates_with CustomAgeValidator, fields: [:age]
Expand Down

0 comments on commit 2dcecdb

Please sign in to comment.