Permalink
Browse files

Remove ActiveRecord deprecations added to Rails

  • Loading branch information...
wycats committed Aug 3, 2010
1 parent e37ee8f commit 28158b19f4d87ba038992b2fc651df95caba12b9
Showing with 0 additions and 18 deletions.
  1. +0 −18 rails_upgrade/active_record.rb
@@ -9,22 +9,4 @@ def add_index(table_name, column_name, options = {})
end
end
end
-
- class Base
- def self.before_validation_on_create(name = nil, &block)
- if name
- before_validation name, :on => :create
- else
- before_validation({:on => :create}, &block)
- end
- end
-
- def self.validate_on_create(name = nil, &block)
- if name
- validate name, :on => :create
- else
- validate({:on => :create}, &block)
- end
- end
- end
end

0 comments on commit 28158b1

Please sign in to comment.