class SeedMigration::RegisterEntry

Attributes

attributes[RW]
model[R]

Public Class Methods

new(model) click to toggle source
# File lib/seed_migration/register_entry.rb, line 6
def initialize(model)
  @model = model
  @attributes = model.attribute_names.dup
end

Public Instance Methods

eql?(object) click to toggle source
# File lib/seed_migration/register_entry.rb, line 15
def eql?(object)
  object.class == self.class && object.model == self.model
end
exclude(*attrs) click to toggle source
# File lib/seed_migration/register_entry.rb, line 11
def exclude(*attrs)
  attrs.map(&:to_s).each { |attr| exclude_single_attributes attr }
end
hash() click to toggle source
# File lib/seed_migration/register_entry.rb, line 19
def hash
  model.hash
end

Private Instance Methods

exclude_single_attributes(attr) click to toggle source
# File lib/seed_migration/register_entry.rb, line 25
def exclude_single_attributes(attr)
  @attributes.delete attr
end