search for: acts_as_authorizable

Displaying 3 results from an estimated 3 matches for "acts_as_authorizable".

2006 Jun 22
4
Authorization Plugin 1.0 release candidate + 3 test apps
...u can handle a user being a general "site admin". - You can choose how much database you''ll use for the roles (and the complexity of your authorization system) through a choice of mixins. Each mixin provides "acts_as_authorized_user" for your User-like object and "acts_as_authorizable" for your authorizable objects. - The test apps include an integration test with a simple DSL developed after reading Chad Fowler''s most excellent Rails Recipe book. The object_roles_test app might be useful as a scaffold for new apps that want authentication and authorization. - It...
2006 Dec 11
1
Index help on Polymorphic Associations
Hello, I''m a newbie to aaf and rails and I hope anyone can help me with this. I have the following Models: class Project < ActiveRecord::Base acts_as_authorizable acts_as_audited :except => [:created_by, :updated_by ], :user_class_name => ''AuthenticatedSystem'', :user_method => ''current_user'' acts_as_ferret :fields => {:name => {:store => :yes}, :description => {:store =...
2008 Jun 20
15
before_save model callback rspec testing
hi all, i''m learning rspec and i can''t figure out how to test if a callback is executed in a model. my model code is: class User < ActiveRecord::Base before_save :encrypt_password ... def encrypt(password) self.class.encrypt(password, salt) end thanks a lot, cs. -- Posted via http://www.ruby-forum.com/.