Sha256: 9a3e243aff8725b05f59e1da1fd9aedae2302bb345d0dbbfe2bb091186febc07

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

module ActiveRecord
  class Base
    class_attribute :__fields_keeper
    self.__fields_keeper = nil

    def self.fields_keeper
      self.__fields_keeper ||= ::Automigration::Fields::Sys::Keeper.new(self)
    end

    class << self
      delegate :has_fields, :add_field, :migration_attr, :to => :fields_keeper
      delegate :get_field, :get_field_safe, :get_fields, :to => :fields_keeper
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
automigration-0.2.2 lib/automigration/base_extention.rb
automigration-0.2.1 lib/automigration/base_extention.rb