Permalink
Browse files

Release 0.5.0.

  • Loading branch information...
1 parent e0ffbc7 commit 7f1515bba29609b5edbb97378ce487d4d19098ca @febuiles committed Nov 21, 2012
Showing with 19 additions and 9 deletions.
  1. +4 −4 Gemfile.lock
  2. +10 −0 README.md
  3. +1 −1 lib/auto_build/version.rb
  4. +4 −4 test/auto_build_test.rb
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- auto_build (0.4.3)
+ auto_build (0.5.0)
rails (> 3.1.0)
GEM
@@ -48,7 +48,7 @@ GEM
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
- mime-types (1.17.2)
+ mime-types (1.19)
multi_json (1.0.4)
polyglot (0.3.3)
rack (1.3.5)
@@ -85,10 +85,10 @@ GEM
sqlite3 (1.3.5)
thor (0.14.6)
tilt (1.3.3)
- treetop (1.4.10)
+ treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
- tzinfo (0.3.31)
+ tzinfo (0.3.35)
PLATFORMS
ruby
View
@@ -40,6 +40,16 @@ You can also do:
To initialize several fields. One `after_initialize` callback will be created per association.
+### belongs_to associations
+
+Works the same as the `has_one` association:
+
+ class User
+ belongs_to :directory
+
+ auto_build :directory
+ end
+
### has_many associations
You can automatically initialize a `has_many` association in the same way you initialized a `has_one`
@@ -1,3 +1,3 @@
module AutoBuild
- VERSION = "0.4.3"
+ VERSION = "0.5.0"
end
@@ -52,8 +52,8 @@ class AutoBuildTest < ActiveSupport::TestCase
assert !@user.address.persisted?
end
- test "belongs_to association" do
- @order = Order.new
- assert @order.user
- end
+ test "belongs_to association" do
+ @order = Order.new
+ assert @order.user
+ end
end

0 comments on commit 7f1515b

Please sign in to comment.