As I understand, currently scoping does not override attr_protected,
which makes it somewhat tedious to create multiuser apps with
"master" attachment:
class Article
validates_presence_of :owner_id
attr_protected :owner_id
end
Article.send(:scoped_methods) << {:create => {:owner_id => 3}}
Article.create! :title => "Welcome" # boom! no no no you have to do
it manually boy....
Is it intentional?
--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core