Permalink
Browse files

Added failing STI config in sanction_test.rb to demonstrate STI incom…

…patibility
  • Loading branch information...
1 parent 5da4174 commit f29c2cece54ce247d68fe788ae8b21a30aecde11 @pjleonhardt pjleonhardt committed Jan 23, 2010
Showing with 4 additions and 1 deletion.
  1. +3 −0 test/app_root/app/models/tabloid.rb
  2. +1 −1 test/unit/sanction_test.rb
@@ -0,0 +1,3 @@
+class Tabloid < Magazine
+
+end
@@ -8,7 +8,7 @@ def setup
# Set up config --
Sanction.configure do |config|
config.principals = [Person]
- config.permissionables = [Person, Magazine, Magazines::Article]
+ config.permissionables = [Person, Magazine, Magazines::Article, Tabloid]
config.role :reader, Person => Magazine, :having => [:can_read]
config.role :editor, Person => Magazine, :having => [:can_edit], :includes => [:reader]

0 comments on commit f29c2ce

Please sign in to comment.