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

Version Path
backlog-0.34 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.35.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.35.2 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.35.1 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.35.3 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.35.4 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.35.5 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.9.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.9.1 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb