No commit activity in last 3 years
No release in over 3 years
FragmentedValidation allows your model to only validate selected attributes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.0
~> 2.6

Runtime

 Project Readme

Fragmented Validation

FragmentedValidation allows your model to only validate selected attributes.

Installation

Add this line to your application's Gemfile:

gem 'fragmented_validation'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fragmented_validation

Usage

Getting Started

Include the FragmentedValidation module by calling the 'fragmented_validation' in your model.

  class User < ActiveRecord::Base
      fragmented_validation
   end

Validate single attribute

  person.valid_email?

Validate multiple attributes

person.fragmented_validation_on(:username, :email)

or

person.fragmented_validation_except(:password)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request