Sha256: cf922efceeaed370bf02e220b1764ee91b00b72876310a10bfb47944a21cf942

Contents?: true

Size: 286 Bytes

Versions: 4

Compression:

Stored size: 286 Bytes

Contents

class BelongsToModel < ActiveRecord::Base
  has_fields do |f|
    f.string :name

    f.belongs_to :simple, :accessible => true
    f.belongs_to :some, :class_name => 'Simple', :accessible => true
    f.belongs_to :parent, :class_name => 'BelongsToModel', :accessible => true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
automigration-1.1.4 spec/dummy/app/models/belongs_to_model.rb
automigration-1.1.3 spec/dummy/app/models/belongs_to_model.rb
automigration-1.1.2 spec/dummy/app/models/belongs_to_model.rb
automigration-1.1.1 spec/dummy/app/models/belongs_to_model.rb