Sha256: 22174b2df9eef7630327577f6cc9ca14e5e90ad8bc9a97e56a10930ec0ad4b0f

Contents?: true

Size: 576 Bytes

Versions: 14

Compression:

Stored size: 576 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)
        self.defining = true
        define_without_redhillonrails_core(info, &block)
      ensure
        self.defining = false
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
frolic-redhillonrails_core-0.0.1 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.9.1 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.9 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.8 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.6 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.5 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.4.1 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.4 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.3.1 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.3 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.2 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.1 lib/red_hill_consulting/core/active_record/schema.rb
redhillonrails_core-1.0.0 lib/red_hill_consulting/core/active_record/schema.rb
authorails-1.0.0 plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/schema.rb