yaml_record
yaml_record copied to clipboard
Persisted data with yaml
Fixed ActiveSupport Crash
We should add association support: ``` ruby class Post < YamlRecord::Base belongs_to :episode # auto-adds `property :episode_id, Integer` end ``` This adds a `episode_id` integer foreign key reference. You can...
Hello, i tried to add yaml_record to a rails 4.1 project and i got that error: yaml_record (>= 0) ruby depends on activesupport (~> 2.3.11) ruby My activesupport version is...
Once we have typecasting, we should support array as a type: ``` ruby class Post < YamlRecord::Base property :names, Array property :user_ids, Array[Integer] end ``` and that should allow: ```...
Old property declaration is: ``` ruby class Post < YamlRecord::Base # Declare your properties properties :title, :body, :user_id end ``` which leaves the properties as whatever types they are inside...
Add validation support to yaml_record. Simplest will be to be able to define `valid?` and then have it run on `update_attributes` and `save`: ``` ruby class Post < YamlRecord::Base def...
We should add this project to travis-ci http://travis-ci.org/ . Register and account and follow the steps, its easy.