Sha256: 47a1ab43ff1e3d549e066f2e214a24b27f056755fd5b262f695d6f725731b131

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 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

1 entries across 1 versions & 1 rubygems

Version Path
automigration-1.1.0 spec/dummy/app/models/belongs_to_model.rb