Displaying 2 results from an estimated 2 matches for "acts_as_authorized_us".
Did you mean:
acts_as_authorized_user
2006 Jun 22
4
Authorization Plugin 1.0 release candidate + 3 test apps
...stances. You can handle a moderator of meeting #23 as easily as you
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 scaffo...
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/.