Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wachunei/uc_student_number_validator
uc_student_number validation for ActiveModel
https://github.com/wachunei/uc_student_number_validator
Last synced: about 2 months ago
JSON representation
uc_student_number validation for ActiveModel
- Host: GitHub
- URL: https://github.com/wachunei/uc_student_number_validator
- Owner: wachunei
- License: mit
- Created: 2016-04-07T23:36:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-08T00:27:46.000Z (almost 9 years ago)
- Last Synced: 2024-08-11T08:07:54.194Z (5 months ago)
- Language: Ruby
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# UcStudentNumberValidator
[![Build Status](https://travis-ci.org/wachunei/uc_student_number_validator.svg?branch=master)](https://travis-ci.org/wachunei/uc_student_number_validator)[uc_student_number](https://rubygems.org/gems/uc_student_number) validation for ActiveModel
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'uc_student_number_validator'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install uc_student_number_validator
## Usage
Include this line to your model
```ruby
validates :the_attribute, is_uc_student_number: true
```You can include a custom message
```ruby
validates :the_attribute, is_uc_student_number: { message: ':(' }
```
## ContributingBug reports and pull requests are welcome on GitHub at https://github.com/wachunei/uc_student_number_validator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).