lib/classy-inheritance.rb in classy-inheritance-0.6.0 vs lib/classy-inheritance.rb in classy-inheritance-0.6.1
- old
+ new
@@ -1,8 +1,9 @@
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
+=begin
module ActiveRecord::Validations::ClassMethods
def validates_associated(association, options = {})
class_eval do
validates_each(association) do |record, associate_name, value|
associate = record.send(associate_name)
@@ -13,9 +14,10 @@
end
end
end
end
end
+=end
module Stonean
module ClassyInheritance
def self.included(base)
base.extend Stonean::ClassyInheritance::ClassMethods