diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-09-01 01:37:02 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-03 22:59:15 +0200 |
commit | 6f3119d3c298c007e7a4eed8375d9fc30b961d06 (patch) | |
tree | 053d9d33dd711f52c3767a4f4b07ea356a6f2fe2 /actionpack/test/lib | |
parent | 2607def8621c41d5b0bee09e379ae26890b27f7d (diff) | |
download | rails-6f3119d3c298c007e7a4eed8375d9fc30b961d06.tar.gz rails-6f3119d3c298c007e7a4eed8375d9fc30b961d06.tar.bz2 rails-6f3119d3c298c007e7a4eed8375d9fc30b961d06.zip |
Remove namespace for isolated namespaced models in forms
Diffstat (limited to 'actionpack/test/lib')
-rw-r--r-- | actionpack/test/lib/controller/fake_models.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/actionpack/test/lib/controller/fake_models.rb b/actionpack/test/lib/controller/fake_models.rb index 37b200d57a..c4127ee699 100644 --- a/actionpack/test/lib/controller/fake_models.rb +++ b/actionpack/test/lib/controller/fake_models.rb @@ -149,3 +149,18 @@ class Author < Comment attr_accessor :post def post_attributes=(attributes); end end + +module Blog + def self._railtie + self + end + + class Post < Struct.new(:title, :id) + extend ActiveModel::Naming + include ActiveModel::Conversion + + def persisted? + id.present? + end + end +end |