Sha256: 6b4bd3cafa61fef3e012aef8f275c827de1b57fbfdc83c875248bd9cf5f814ce
Contents?: true
Size: 610 Bytes
Versions: 69
Compression:
Stored size: 610 Bytes
Contents
module RedHillConsulting::Core::ActiveRecord module Schema def self.included(base) base.extend(ClassMethods) end module ClassMethods def self.extended(base) class << base attr_accessor :defining alias :defining? :defining alias_method_chain :define, :redhillonrails_core end end def define_with_redhillonrails_core(info={}, &block) begin self.defining = true define_without_redhillonrails_core(info, &block) ensure self.defining = false end end end end end
Version data entries
69 entries across 69 versions & 2 rubygems