Skip to content

kipusystems/validates_associated_bubbling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ValidatesAssociatedBubbling

This Gem is based on the question/answer in this Stackoverflow discussion.

It's purpose is to add an associations validation error messages to the parent model.

Installation

Add this line to your application's Gemfile:

gem 'validates_associated_bubbling'

And then execute:

$ bundle

Or install it yourself as:

$ gem install validates_associated_bubbling

Usage

Add this line to a model that has associations:

class SomeModel < ActiveRecord::Base
  validates_associated_bubbling :association1, :association2_or_more, unless: :some_predicate
end

Same options available as other validation class methods.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages