Sha256: f94e08bc90a485054f5989848186eb1bb0b358aa4d67ffbba46aebc4480ee705

Contents?: true

Size: 395 Bytes

Versions: 6

Compression:

Stored size: 395 Bytes

Contents

module ActiveRecord
  module ActsAs
    module ReflectionsWithActsAs
      def _reflections
        super.reverse_merge(acting_as_model._reflections)
      end
    end

    module ClassMethods
      def self.included(module_)
        module_.prepend ReflectionsWithActsAs
      end

      def validators_on(*args)
        super + acting_as_model.validators_on(*args)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_record-acts_as-2.0.9 lib/active_record/acts_as/class_methods.rb
active_record-acts_as-2.0.8 lib/active_record/acts_as/class_methods.rb
active_record-acts_as-2.0.6 lib/active_record/acts_as/class_methods.rb
active_record-acts_as-2.0.5 lib/active_record/acts_as/class_methods.rb
active_record-acts_as-2.0.4 lib/active_record/acts_as/class_methods.rb
active_record-acts_as-2.0.3 lib/active_record/acts_as/class_methods.rb