Permalink
Browse files

Removed models.rb example.

  • Loading branch information...
1 parent 2a1339c commit e54af46ecfd7c63521a5e6ed3e3adf23eed2ce99 @jnunemaker committed Feb 13, 2012
Showing with 0 additions and 47 deletions.
  1. +0 −47 examples/models.rb
View
47 examples/models.rb
@@ -1,47 +0,0 @@
-require 'pathname'
-
-root_path = Pathname(__FILE__).dirname.join('..').expand_path
-lib_path = root_path.join('lib')
-$:.unshift(lib_path)
-
-require 'toy'
-require 'adapter/memory'
-
-class Address
- include Toy::Store
- adapter :memory, {}
-
- attribute :city, String
- attribute :state, String
- attribute :zip, String
-end
-
-class PhoneNumber
- include Toy::Store
-
- attribute :area_code, String
- attribute :number, String
-end
-
-class Company
- include Toy::Store
- adapter :memory, {}
-
- attribute :name, String
-end
-
-class User
- include Toy::Store
- adapter :memory, {}
-
- attribute :name, String
- attribute :age, Integer
- attribute :admin, Boolean, :default => false
- attribute :ssn, String
- timestamps
-
- list :addresses, :dependendent => true
- reference :employer, Company
-
- # validations and callbacks are available too
-end

0 comments on commit e54af46

Please sign in to comment.