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.36.2 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
advertnet-1.0.1 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
advertnet-1.0.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.10.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.10.1 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.10.4 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.10.2 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.10.5 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.10.3 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.10.7 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.10.6 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.10.8 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.12.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.11.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.12.2 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.12.1 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.12.4 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.12.3 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.13.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb
backlog-0.14.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb