Skip to content
Skeleton rails engine for modular development
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db/migrate
docker
docs
lib
test
.env.example
.gitignore
.ruby-version
CHANGELOG.md
Dockerfile
Gemfile
MIT-LICENSE
README.md
Rakefile
docker-compose.yml
morpho.gemspec

README.md

Morpho

Short description and motivation.

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

gem 'morpho'

And then execute:

$ bundle

Or install it yourself as:

$ gem install morpho

Validators

Contain number validator

Value must contain at least 1 number.

options:

  • message: A custom message. Defaults to I18n.t('morpho.labels.validators.contain_number')
class User < ApplicationRecord
  validates :password, :'morpho/validators/contain_number' => true
end

Contain uppercase validator

Value must contain at least 1 uppercase letter.

options:

  • message: A custom message. Defaults to I18n.t('morpho.labels.validators.contain_uppercase')
class User < ApplicationRecord
  validates :password, :'morpho/validators/contain_uppercase' => true
end

Contain symbol validator

Value must contain at least 1 special char.

options:

  • message: A custom message. Defaults to I18n.t('morpho.labels.validators.contain_symbol')
class User < ApplicationRecord
  validates :password, :'morpho/validators/contain_symbol' => true
end

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.

You can’t perform that action at this time.