projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More model validations. Fixing one test.
[rails.git]
/
app
/
models
/
old_way.rb
diff --git
a/app/models/old_way.rb
b/app/models/old_way.rb
index ce856e208d00072bbcef3d1531029dcb667e0e2e..da9cf0697104ecea39d12db601d17f26e1be8cec 100644
(file)
--- a/
app/models/old_way.rb
+++ b/
app/models/old_way.rb
@@
-5,6
+5,8
@@
class OldWay < ActiveRecord::Base
belongs_to :changeset
+ validates_associated :changeset
+
def self.from_way(way)
old_way = OldWay.new
old_way.visible = way.visible