This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Mongoid | |
module Unvalidate | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Removes specified validations from existing models for a given field | |
# | |
# @param [Symbol] field the field to remove validations from | |
# @param [Array<Symbol> | Symbol] validations validations to remove from field |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# upgrading from rails 1 to 2.2 | |
# original script by technoweenie | |
# additions taken from other sources including: | |
# http://rubythis.blogspot.com/2006/12/ruby-on-rails-deprecations-part-2.html | |
# http://mentalized.net/journal/2007/03/13/rails_20_deprecations/ | |
# http://www.slashdotdash.net/2007/12/03/rails-2-upgrade-notes/ | |
# http://www.akuaku.org/archives/2008/04/upgrading_to_ra.shtml | |
# Does not include checks for Rails 2.3 changes. | |
namespace :rails2 do |