Roshi
ActiveModel/ActiveRecord Validation Collection For Mainly Japanese
Installation
Add this line to your application's Gemfile:
gem 'roshi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install roshi
Usage
class TestModel
validates :email, email: true
validates :zip_code, zip_code: true # zip_code: { hiphenation: true }
validates :hiragana, hiragana: true
validates :version_number, version_number: true
end
Contributing
- Fork it ( https://github.com/fusic/roshi/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request