Sha256: aace75ca129f59a281b3462c9ea48d76b7ea2f86765fed7e9dea4795d9ded976

Contents?: true

Size: 265 Bytes

Versions: 2

Compression:

Stored size: 265 Bytes

Contents

class Person < ActiveRecord::Base
  has_one :place
  
  jtable :basic, :first_name, :last_name, :age, :date_of_birth, :gender, :alive
  
  jtable :one_to_one, :first_name, :last_name, :age, :date_of_birth, :gender, :alive, {:place => [:address, :city, :state]}
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jtable-rails-0.2.1 spec/support/rails_app/app/models/person.rb
jtable-rails-0.2.0 spec/support/rails_app/app/models/person.rb