Sha256: e3a3c722d929b737e2475a462682a0bb7d5b45aca750abc9ac2a998dea75712a
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 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]} jtable :custom_attributes, :first_name, :last_name, :date_of_birth def jtable_custom_attributes_attribute_date_of_birth self.date_of_birth.strftime("%m/%d/%Y") end end
Version data entries
4 entries across 4 versions & 1 rubygems