Sha256: ece3cc420e31869a7f69ec44a717578b38fd471c4afa39885499c94a90ceb151

Contents?: true

Size: 662 Bytes

Versions: 4

Compression:

Stored size: 662 Bytes

Contents

module UsesguidMigrations
  module ActiveRecordExtensions
    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, :lfe_usesguid_migrations
          end
        end

        def define_with_lfe_usesguid_migrations( info={}, &block )
          self.defining = true
          define_without_lfe_usesguid_migrations( info, &block )
        ensure
          self.defining = false
        end
      end
  
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
usesguid_migrations-1.0.3 lib/usesguid_migrations/active_record_extensions/schema.rb
usesguid_migrations-1.0.2 lib/usesguid_migrations/active_record_extensions/schema.rb
usesguid_migrations-1.0.1 lib/usesguid_migrations/active_record_extensions/schema.rb
usesguid_migrations-1.0.0 lib/usesguid_migrations/active_record_extensions/schema.rb