jtable-rails 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.md +23 -1
  2. data/VERSION +1 -1
  3. data/jtable-rails.gemspec +1 -1
  4. metadata +3 -3
data/README.md CHANGED
@@ -5,4 +5,26 @@
5
5
 
6
6
  [jtable-rails RubyGem](https://github.com/yelvert/jtable-rails)
7
7
 
8
- [jTable.net source](https://github.com/yelvert/jtable-site)
8
+ [jTable.net source](https://github.com/yelvert/jtable-site)
9
+
10
+
11
+ Usage
12
+ =====
13
+
14
+ Basic
15
+ -----
16
+ class Person < ActiveRecord::Base
17
+ jtable :basic, :first_name, :last_name
18
+ end
19
+
20
+ This creates a jTable called *basic* with the attributes *first_name* and *last_name*.
21
+
22
+ One-to-One Association
23
+ ----------------------
24
+ class Person < ActiveRecord::Base
25
+ has_one :place
26
+
27
+ jtable :one_to_one, :first_name, :last_name, {:place => [:city, :state]}
28
+ end
29
+
30
+ This creates a jTable called *one_to_one* with the *person* attributes *first_name* and *last_name*, and the *place_attributes* *city* and *state*
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/jtable-rails.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jtable-rails}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Taylor Yelverton"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Taylor Yelverton
@@ -228,7 +228,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
228
228
  requirements:
229
229
  - - ">="
230
230
  - !ruby/object:Gem::Version
231
- hash: -183630829231020060
231
+ hash: 882244993807923382
232
232
  segments:
233
233
  - 0
234
234
  version: "0"