Skip to content

mtobias/validates_overlap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ValidatesOverlap

This project rocks and uses MIT-LICENSE.

This gem is available only for Rails 3.

When this gem should be helpful for you?

If you are developing Rails 3 app, let say some meeting planner and you can’t save records which have time overlap.

Using

Add to your gemfile

gem 'validates_overlap'

In your model

without scope

validates :starts_at, :ends_at, :overlap => true

with scope

validates :starts_at, :ends_at, :overlap => {:scope => "user_id"}

About

Gem for Rails 3, that helps validate overlap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 81.8%
  • JavaScript 18.2%