aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/mass_assignment_specific.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/mass_assignment_specific.rb')
-rw-r--r--activerecord/test/models/mass_assignment_specific.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/activerecord/test/models/mass_assignment_specific.rb b/activerecord/test/models/mass_assignment_specific.rb
new file mode 100644
index 0000000000..13a80e0197
--- /dev/null
+++ b/activerecord/test/models/mass_assignment_specific.rb
@@ -0,0 +1,32 @@
+class LoosePerson < ActiveRecord::Base
+ self.table_name = 'people'
+ self.abstract_class = true
+ attr_protected :credit_rating, :administrator
+end
+
+class LooseDescendant < LoosePerson
+ attr_protected :phone_number
+end
+
+class LooseDescendantSecond< LoosePerson
+ attr_protected :phone_number
+ attr_protected :name
+end
+
+class TightPerson < ActiveRecord::Base
+ self.table_name = 'people'
+ attr_accessible :name, :address
+end
+
+class TightDescendant < TightPerson
+ attr_accessible :phone_number
+end
+
+class Task < ActiveRecord::Base
+ attr_protected :starting
+end
+
+class TopicWithProtectedContent < ActiveRecord::Base
+ self.table_name = 'topics'
+ attr_protected :content
+end \ No newline at end of file